STM32F746 NUCELO - debug issue

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

chibi-habibi
Posts: 4
Joined: Sat Nov 10, 2018 5:46 am

STM32F746 NUCELO - debug issue

Postby chibi-habibi » 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!

User avatar
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

Postby Giovanni » Wed Nov 28, 2018 6:49 am

I think it is trying to add SW breakpoints, you need HW breakpoints in flash.

Giovanni

User avatar
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

Postby russian » Sun Mar 03, 2019 5:10 pm

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


Image
http://rusefi.com/ - electronic fuel injection


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 51 guests