STM32F746 NUCELO - debug issue
Posted: Wed Nov 28, 2018 5:19 am
Hello!
I am using chibios182 branch with chibistudio, and i am having issues debugging the two programs i tried -- i am using the project as-is with no changes - just import to chibiuser workspace
C:\ChibiStudio\chibios182\demos\STM32\RT-STM32F746ZG-NUCLEO144
C:\ChibiStudio\chibios182\testhal\STM32\STM32F7xx\USB_RAW
both compile fine, openocd runs fine, however when i trying to run debug an error dialog pops up
Execution is suspended because of error.
Warning: Cannot insert breakpoint 2. Cannot access memory at address 0x202e80
Cannot insert breakpoint 1. Cannot access memory at address 0x203226
Command aborted.
In the GDB log there is following message
291 symbol-file C:\\ChibiStudio\\chibios182\\demos\\STM32\\RT-STM32F746ZG-NUCLEO144\\build\\ch.elf
&"symbol-file C:\\\\ChibiStudio\\\\chibios182\\\\demos\\\\STM32\\\\RT-STM32F746ZG-NUCLEO144\\\\build\\\\ch.elf\n"
symbol-file C:\\ChibiStudio\\chibios182\\demos\\STM32\\RT-STM32F746ZG-NUCLEO144\\build\\ch.elf
~"Reading symbols from C:\\ChibiStudio\\chibios182\\demos\\STM32\\RT-STM32F746ZG-NUCLEO144\\build\\ch.elf..."
Reading symbols from C:\ChibiStudio\chibios182\demos\STM32\RT-STM32F746ZG-NUCLEO144\build\ch.elf...~"done.\n"
done.
291^done
(gdb)
292-target-select remote localhost:3333
=thread-group-started,id="i1",pid="42000"
&"warning: No executable has been specified and target does not support\ndetermining executable automatically. Try using the \"file\" command."
&"\n"
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
=thread-created,id="1",group-id="i1"
openocd has the following log
Info : Target voltage: 3.264764
Warn : Silicon bug: single stepping will enter pending exception handler!
Info : stm32f7x.cpu: hardware has 8 breakpoints, 4 watchpoints
for C:\ChibiStudio\chibios182\testhal\STM32\STM32F7xx\USB_RAW program, i also changed the makefile to compile with -g and it does not seem to make any difference
Any help would be greatly appreciated! Thanks much!
I am using chibios182 branch with chibistudio, and i am having issues debugging the two programs i tried -- i am using the project as-is with no changes - just import to chibiuser workspace
C:\ChibiStudio\chibios182\demos\STM32\RT-STM32F746ZG-NUCLEO144
C:\ChibiStudio\chibios182\testhal\STM32\STM32F7xx\USB_RAW
both compile fine, openocd runs fine, however when i trying to run debug an error dialog pops up
Execution is suspended because of error.
Warning: Cannot insert breakpoint 2. Cannot access memory at address 0x202e80
Cannot insert breakpoint 1. Cannot access memory at address 0x203226
Command aborted.
In the GDB log there is following message
291 symbol-file C:\\ChibiStudio\\chibios182\\demos\\STM32\\RT-STM32F746ZG-NUCLEO144\\build\\ch.elf
&"symbol-file C:\\\\ChibiStudio\\\\chibios182\\\\demos\\\\STM32\\\\RT-STM32F746ZG-NUCLEO144\\\\build\\\\ch.elf\n"
symbol-file C:\\ChibiStudio\\chibios182\\demos\\STM32\\RT-STM32F746ZG-NUCLEO144\\build\\ch.elf
~"Reading symbols from C:\\ChibiStudio\\chibios182\\demos\\STM32\\RT-STM32F746ZG-NUCLEO144\\build\\ch.elf..."
Reading symbols from C:\ChibiStudio\chibios182\demos\STM32\RT-STM32F746ZG-NUCLEO144\build\ch.elf...~"done.\n"
done.
291^done
(gdb)
292-target-select remote localhost:3333
=thread-group-started,id="i1",pid="42000"
&"warning: No executable has been specified and target does not support\ndetermining executable automatically. Try using the \"file\" command."
&"\n"
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
=thread-created,id="1",group-id="i1"
openocd has the following log
Info : Target voltage: 3.264764
Warn : Silicon bug: single stepping will enter pending exception handler!
Info : stm32f7x.cpu: hardware has 8 breakpoints, 4 watchpoints
for C:\ChibiStudio\chibios182\testhal\STM32\STM32F7xx\USB_RAW program, i also changed the makefile to compile with -g and it does not seem to make any difference
Any help would be greatly appreciated! Thanks much!