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!
STM32F746 NUCELO - debug issue
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: STM32F746 NUCELO - debug issue
I think it is trying to add SW breakpoints, you need HW breakpoints in flash.
Giovanni
Giovanni
- russian
- Posts: 364
- Joined: Mon Oct 29, 2012 3:17 am
- Location: Jersey City, USA
- Has thanked: 16 times
- Been thanked: 14 times
Re: STM32F746 NUCELO - debug issue
Giovanni wrote:I think it is trying to add SW breakpoints, you need HW breakpoints in flash.
So the drama here is about some F7 cores having bugs which cause openocd+eclipse to how work out of the box. In order to get breakpoints working you need to right-click on breakpoint and adjust type
http://rusefi.com/ - electronic fuel injection
Who is online
Users browsing this forum: No registered users and 51 guests