cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746G error "(Read)Failed determine breakpoint type"

GoJoe
Associate II

When starting a debug after uploading to target I get this error:
"(Read)Failed determine breakpoint type"
this happens randomly as I recreate my project all working good at start but then I get it again randomly.
only thing I can guess it is happening after using CubeMX and 'generate code',
even happened when I just generate without any change to configuration.
once it happen I can't fix it, I need to delete the project and create a new one.

the only thing I found is some change in the .ioc file after 'generate code'
at the line start with
"ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC........"
while I didn't change anything in configuration.

more wired things are:
size of this file shown at console 96bytes????

 

****
Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_a32308.srec

File : ST-LINK_GDB_server_a32308.srec

Size : 96.00 B

Address : 0x08000000

*****

it also says in disassembly

"f3af4804: Failed to execute MI command: -data-disassemble -s 4088350724 -e 4088350864 -- 3 Error message from debugger back end: Cannot access memory at address 0xf3af4804"


when tried openOCD,
PC and MSP getting really wired values instead of flash and RAM
and error "Failed to read memory at 0xb9337822"

so my guess it is uploading something wrong to target 

will be happy for some help

my board is STM32F746G
using touchgfx designer template v3.0.19 imported to cubeIDE
and cubeIDE, cubeMX and Firmware package all same version as template





1 ACCEPTED SOLUTION

Accepted Solutions
GoJoe
Associate II

update.. solved
thanks to this dude
https://community.st.com/t5/stm32cubeide-mcus/build-error/td-p/587816 

cubeIDE is ok. I added my own include path and wasn't aware of 'exclude resource from build' as noted in the link

View solution in original post

2 REPLIES 2
GoJoe
Associate II

want to add that it is defiantly a bug in cubeIDE cause
while getting this error I can still go to touchGFX designer and press the 'program and run target' and all works well.

GoJoe
Associate II

update.. solved
thanks to this dude
https://community.st.com/t5/stm32cubeide-mcus/build-error/td-p/587816 

cubeIDE is ok. I added my own include path and wasn't aware of 'exclude resource from build' as noted in the link