debugger : Step over / Step into
How do i configure the debugger to work properly. I am using the STM32L476G-DISCO with STLINK built in.
When I step over a function
xTaskCreate((TaskFunction_t)LED_Thread1, “LED1”, configMINIMAL_STACK_SIZE, NULL,1, NULL);
I get the following output from the console window
Info : halted: PC: 0x080008e0
Info : halted: PC: 0x08002e60
Info : halted: PC: 0x080008e6
Info : halted: PC: 0x080008e8
Info : halted: PC: 0x080008ea
It appears that there is a halt between each lower level function call. It can take 2 seconds to step over some top level function calls.
Not sure if its related but get the following output when starting debugging:-
Warn : use ‘STM32L476.cpu’ as target identifier, not ‘0’
padded zone erase set to 1
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
adapter speed: 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v24 API v2 M v11 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.224211
Info : STM32L476.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
adapter speed: 240 kHz
STM32L476.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000360 msp: 0x20018000
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
Info : Device id = 0x10076415
Info : STM32L4xx flash size is 1024kb, base address is 0x8000000
adapter speed: 240 kHz
STM32L476.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000360 msp: 0x20018000
adapter speed: 240 kHz
STM32L476.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000360 msp: 0x20018000
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
STM32L476.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x21000000 pc: 0x20000068 msp: 0x20018000
adapter speed: 240 kHz
STM32L476.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000360 msp: 0x20018000