2024-02-02 08:33 AM
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
Solved! Go to Solution.
2024-02-04 02:12 AM
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
2024-02-04 12:40 AM
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.
2024-02-04 02:12 AM
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