cancel
Showing results for 
Search instead for 
Did you mean: 

USART_Printf demo with STM32L152-EVAL

xinjin
Associate II
Posted on March 29, 2013 at 06:45

Dear everyone,

     USART_Printf demo provided in STM32L1xx_StdPeriph_Lib_V1.2.0 can't run on STM32L152-EVAL. I found that there is no output at ST3241EB Pin 11. However, I use PC10/PC11 (UART3) with another MAX232, there is output to the hyperterminal but not correct. Have someone sucessfully use the demo?

B.R.

Jin
2 REPLIES 2
Posted on March 29, 2013 at 13:33

The example would need to be modified to use COM2.

If in doubt copy the example into a new project, and break out and explicitly define the USART and pin configurations rather than use the assorted files in the utility directory. ie make a more stand alone example.

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32L15x%20UART%20Configuration%20and%20use%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&...

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
xinjin
Associate II
Posted on April 01, 2013 at 08:26

Thanks clive. Finally, I porting my code from STM32F4 to STM32L152-EVAL without using the demo code. By the way, I change the baud rate to 9600, it works. But it fails when 115200 is set.