cancel
Showing results for 
Search instead for 
Did you mean: 

Code for USART1 on STM32F3-Discovery

johann
Associate
Posted on July 16, 2016 at 17:58

Clive1 gave a simple code for sending data from the board to the PC via the USB-connection here:

/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/usart%20code&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=1160♯%7b85D10E25-9ABA-4616-AB29-512EDFAFB851%7d

I assume the data can be seen via a virtual COM port (e.g. via putty).

The code is running fine on the board (I added a led toggling in between). However I see no data on the PC. On my PC there is no virtual COM port visible - neither with nor without a connected board. I am working with a windows7 PC.

I tried already quite a lot. I tried it with the keil Toolset as well with the openSTM32 system. I installed different versions of the virtual com port (1.4.0 and 1.3.1 as well as with the standard virtual com port associated STLinkV2.1.).

Running code on the board (also communication via other usart interfaces) as well as debugging is okay.

I tried to start the virtual com port manually on the PC and I got error 10 (This device cannot start.).

#usart1
2 REPLIES 2
Posted on July 16, 2016 at 18:53

That model DISCO does not support a VCP via the ST-LINK. Here you'd need to us a USB-to-Serial adapter connected to the PA9/PA10 pins.

It could use the SWV Viewer using the ITM/SWV debug channel on the PB3 SWO pin.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
johann
Associate
Posted on July 17, 2016 at 16:38

Hi Clive1!

Thank you for the clarification. I just wondered, why this colleague answered ''thanks for code, it is working .''. So I thought okay, it should work on my board too.