2021-07-31 07:22 PM
I 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.
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
2021-08-06 07:43 AM
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/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