Senior II
May 18, 2021
Question
Bug in STM32CubeIDE - Breakpoints in assembly code are one off
- May 18, 2021
- 8 replies
- 3642 views
BUG ahead!
I created an assembler project in STM32CubeIDE with my own Makefile.
When setting a breakpoint in the assembler source view and start the debug session, the breakpoint is hit but it is displayed (the arrow) one line after the actual instruction where the BP was originally set to.
See attached example. Set a breakpoint on "resetHandler" and you will see that it shows one off.
Can anyone confirm, please? Will this Bug be fixed?
To reproduce:
- Right click in the Process Explorer view ->New STM32Project
- Choose Part Number and Board (STM32F407VG and DISCOVERY, actually irrelevant)
- Click on Next
- Give it the name "simple" and choose in Targeted Project Type: "Empty"
- Delete all (3) .c files in Src (confirm to delete from filesystem)
- Right click on the Root node of the new project
- Choose "Preferences" at the bottom of the dropdown menu
- Select the list box item C/C++ Build
- uncheck "Generate Makefiles automatically" in the Makefile generation section
- change Build Directory to ${workspace_loc:/<project>}/Src
- put the attached simple.zip into the workspace/simple directory and unzip it (unzip simple.zip)
- Delete the Startup folder and its contents.
- Delete the STM32*.ld files
- Do a Refresh on the project
- clean Project
- build project
- with a target connected start debugging and set a breakpoint to the first label
- You will notice that when the debugee stops, the arrow points to the wrong location
