Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Can't See Disassembly Code

I need to see disassembly code so I can look am address to find out where an interrupt is being thrown. After a sucessful compile and code run up to the exception point I do not see any disassembly code in the Disassembly tab. There is message in that tab that says “No debug context”.

When I run the code the lines pasted below appear appear in red. Everyone of these paths are valid. I checked them in the Windows Explorer, and the compiler was able to find them to create the executable. These line nunbers correspond to set breakpoints. The lines are actually there because clicking on a break point in the Breakpoints tab finds those lines the messages say are not there.

I am using this article a guide to find out why the interrupt is taking place. The interrupt is due to a system error that causes it to enter a default handling routine that has an infinite loop. I removed the “static” compiler directives. Otheriwise the code I am using is the same for each interrupt I handle this way.

What do I need to do to see the disassembly?

Why are these red lines appearing?


No line 240 in file “C:\Projects\Vladimir Rubtsov\Navy Tower Fiber Optic Beacon\Thermoelectric Cooler Driver\Firmware\TEC Driver SW4STM32\Src\freertos.c”.
No line 225 in file “C:\Projects\Vladimir Rubtsov\Navy Tower Fiber Optic Beacon\Thermoelectric Cooler Driver\Firmware\TEC Driver SW4STM32\Src\freertos.c”.
No line 320 in file “C:\Projects\Vladimir Rubtsov\Navy Tower Fiber Optic Beacon\Thermoelectric Cooler Driver\Firmware\TEC Driver SW4STM32\TEC\Src\tec_msg_threads.c”.
No line 171 in file “C:\Projects\Vladimir Rubtsov\Navy Tower Fiber Optic Beacon\Thermoelectric Cooler Driver\Firmware\TEC Driver SW4STM32\Src\freertos.c”.
No source file named C:\Projects\Vladimir Rubtsov\Navy Tower Fiber Optic Beacon\Thermoelectric Cooler Driver\Firmware\TEC Driver SW4STM32\Src\main.c.
No source file named C:\Projects\Vladimir Rubtsov\Navy Tower Fiber Optic Beacon\Thermoelectric Cooler Driver\Firmware\TEC Driver SW4STM32\Src\main.c.
No line 195 in file “C:\Projects\Vladimir Rubtsov\Navy Tower Fiber Optic Beacon\Thermoelectric Cooler Driver\Firmware\TEC Driver SW4STM32\Src\freertos.c”.
No line 509 in file “C:\Projects\Vladimir Rubtsov\Navy Tower Fiber Optic Beacon\Thermoelectric Cooler Driver\Firmware\TEC Driver SW4STM32\TEC\Src\tec_msg_threads.c”.

France

To see the disassembly you should switch to Instruction Stepping Mode by clicking th esmall icon on the top right of the Debug view (or just on the right of the “step” buttons.

Bernard (Ac6)


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs