Hi,
I am new to ChibiOS and started evaluating it ( Latest 21.11.x ) using Board NUCLEO-G0B1RE, Since the board is not supported in OpenOCD 0.11.0, I am using latest prebuilt OpenOCD 0.12.0 in which I can start debugging RT-STM32G0B1RE-NUCLEO64 Demo Project in ChibiStudio, but the issue is that while debugging, when I Step Over functions
halInit();
chSysInit();
instead of executing function
sdStart(&SD2, NULL);
it Jumps back to executing halInit() and chSysInit() again after I continue Stepping Over, it then executes
sdStart(&SD2, NULL);
and then runs normally as expected, LED blinks
My query:
Is this normal and expected or something strange happening here ?
Thanks
Debugging Issue with STM32 NUCLEO-G0B1RE and OpenOCD 0.12.0
-
- Posts: 2
- Joined: Thu Oct 26, 2023 6:07 am
- Giovanni
- Site Admin
- Posts: 14565
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1112 times
- Been thanked: 937 times
- Contact:
Re: Debugging Issue with STM32 NUCLEO-G0B1RE and OpenOCD 0.12.0
Hi,
Compiler optimizations, when debugging use -O0 instead of -O2 in the makefile.
Giovanni
Compiler optimizations, when debugging use -O0 instead of -O2 in the makefile.
Giovanni
-
- Posts: 2
- Joined: Thu Oct 26, 2023 6:07 am
Re: Debugging Issue with STM32 NUCLEO-G0B1RE and OpenOCD 0.12.0
It worked,
Now I will continue exploring ChibiOS more
Thanks
Now I will continue exploring ChibiOS more
Thanks

Who is online
Users browsing this forum: No registered users and 10 guests