You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going through the embedded rust discovery book for the STM32 Discovery kit. I was trying to following the sample code for 07-Registers, but when I try to debug the application using gdb, after the first next instruction, the program seems to halt, produces no further output and does not return control to the gdb console unless I escape with Ctrl + C.
Sample out put is reproduced below;
Breakpoint 1, registers::__cortex_m_rt_main_trampoline ()
at src/07-registers/src/main.rs:7
7 #[entry]
(gdb) next
halted: PC: 0x080001f6
^C
Program received signal SIGINT, Interrupt.
0x0800023a in registers::__cortex_m_rt_main ()
at src/07-registers/src/main.rs:28
28 loop {}
Pretty new to embedded programming so no idea what the halted: PC 0x080001f6 output means and why I'm seeing a memory address instead of moving forward in the debug session. Any insight would be appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm going through the embedded rust discovery book for the STM32 Discovery kit. I was trying to following the sample code for 07-Registers, but when I try to debug the application using gdb, after the first next instruction, the program seems to halt, produces no further output and does not return control to the gdb console unless I escape with Ctrl + C.
Sample out put is reproduced below;
Pretty new to embedded programming so no idea what the halted: PC 0x080001f6 output means and why I'm seeing a memory address instead of moving forward in the debug session. Any insight would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions