AnsweredAssumed Answered

STM32F1 USART problem

Question asked by t.markus on Feb 17, 2016
Latest reply on Feb 17, 2016 by t.markus
Hi, I am new to the STM32 family and I am stuck with a pretty basic problem. 

My board (STM32F105 CAN study board) came with a basic software in Flash, and I got the sources of that software which I am running from RAM. However, the USART2 does not behave the same from the source code in RAM. I.e., the code should output on USART2:

++++++++++++++++++++++++
  CAN Study Board
++++++++++++++++++++++++

But when I run the program 3 times in the following sequence:

1. From Flash
2. From RAM
3. From Flash (again)

the Putty output looks like this:

++++++++++++++++++++++++
  CAN Study Board
++++++++++++++++++++++++
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒++++++++++++++++++++++++
  CAN Study Board
++++++++++++++++++++++++

So the characters from the RAM implementation are corrupt. Any idea what the problem could be?

Attachments

Outcomes