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


You are viewing a reply to Debugging reset handler  

Debugging reset handler

why do you want to rewrite everyting ? Reset handler etc ... Want template startupxxx.s will do fine no?
just use that at first at least. That is proven working.

wihout this “common” .s i would make sure “do not use standard start file” linker option is chedk
that can make standard symbol that you could miss to come from standard crt0 and play you tricks .

are your sure your “vector” section is well placed in the ld at cpu reset vector adress ?

Are you sure sp is setup by default ? in most reset handler s file that is set at very first desite “estack in the vector table”

Normaly if yo not not set stop at main option on your debug config you can debug from reset ,
just set a bkp on it or even hardcode the reset vetor in brake point.
I have use that feature to debug modfied startup.s (debug cmm copy, custom boot laoder etc ...)
if you can’t debug your reset it may be a signe it is not execute on reset , double check in map file symbol and addr

i’m not aware of “openocd” or other stm32 debugger doing anything specific on real debug but wome “reset conect option”.
some debugger play trick and bypass the slow crt0/startup when on simulator but am not aware of anything such here .

They are strnage conect reset option very obscure to me you want to look at dig for
“use hardware reset, connect under reset” reset_config srst_only srst_nogate

good luck

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs