How can I debug STM32 evaluation boards in RAM?

Rating:
 
Vote for this:
Good  -  Bad

Answer

The TrueSTUDIO/STM32 project wizard let you create projects which are linked either to RAM or Flash. Sometimes, people fail to start debugging of the application using an STM32 evaluation board from STMicroelectronics.

The cause of the problem is most likely that the H/W switch on the STM32 EVB board is set in the wrong position. To debug a project linked for RAM, the H/W switch must be set to RAM mode, and vice versa, to debug a project linked for Flash, the H/W switch must be set to Flash mode.

If the H/W switch setting does not correspond to the project type, debugging will not start on STM32 evaluation boards.