Skip to main content
Visitor II
August 1, 2021
Question

I am using Sensortile/box STEVAL-MKSBOX1V1. I have connected the device using NUcleo F401RE board for realtime debugging. How I shall enable Virtual Com Port

  • August 1, 2021
  • 1 reply
  • 645 views

0693W00000Czq9PQAR.jpgI Have configured as shown in the picture , How should I enable the Virtual Com port,. My intention is evaluating all the sensors and push the data to Virtual COM Port.

  1. I am writing program for I2C_TempSensor - STTS22H  , for that I have configure from the port based on the circuit

USART1 – Pin No PA9 – Rx and PA10 Tx

is used for ST-LINK So we shall use this for virtual COM Port

#include "string.h"

int main(void)

{

 /* USER CODE BEGIN 1 */

 uint8_t buf[12];

 /* USER CODE END 1 */

while (1)

 {

   /* USER CODE END WHILE */

       strcpy((char*)buf, "Hello!\r\n");

       HAL_UART_Transmit(&huart1, buf, strlen((char)*buf), HAL_MAX_DELAY);

       HAL_Delay(500);

   /* USER CODE BEGIN 3 */

 }

 /* USER CODE END 3 */

}

 

controller STM32L4R9ZIJ6

So before proceeding I tried to display Hello using teeraterm , but no output seen

    This topic has been closed for replies.

    1 reply

    Visitor II
    August 6, 2021

    Hi, if you want to stream the data via USB / VCOM with the STEVAL-MKSBOX1V1, you can use the DataLogExtend example of the fp-sns-stbox1 pack, which sends sensors data via USB and using Unicleo.

    https://www.st.com/resource/en/user_manual/dm00647052-getting-started-with-the-stm32cube-function-pack-for-the-pro-mode-of-the-sensortilebox-wireless-multi-sensor-development-kit-stmicroelectronics.pdf

    https://www.st.com/en/embedded-software/fp-sns-stbox1.html

    https://www.st.com/en/development-tools/unicleo-gui.html

    You can upload the application .bin file in DFU mode without the programming cable.

    Or you can configure the USB streaming with ST BLE Sensor app in Expert mode.

    Tom