Launching SW4STM32 debug fails
Hello hopefully my last topic before starting learning from code for good,
I have my Eclipse-SW4STM32 project built, I can use the binary to fly the drone : the software looks working without major issue.
I have managed to launch a Texane/STLink GDB server by command line, with a STLink probe to connect to my custom F4 board : I can reach main breakpoint without issue.
Although, when I launch a debug session via Eclipse, it crashes during loading :
- here is the console output : https://pastebin.com/Y2wNER8b.
- here is the warning message “Error in final launch sequence
Failed to execute MI command:
load /home/maxzor/eclipse/workspace-pixracer/pixracer/obj/main/inav_PIXRACER.elf
Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet”
-here is the content of .cfg script
- This is an Pixracer board with a single STM32F427VITx chip
- Generated by System Workbench for STM32
- Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s)
source find interface/stlink.cfg
set WORKAREASIZE 0x8000
transport select “hla_swd”
set CHIPNAME STM32F427VITx
- Enable debug when in low power modes
set ENABLE_LOW_POWER 1
- Stop Watchdog counters when halt
set STOP_WATCHDOG 1
- STlink Debug clock frequency
set CLOCK_FREQ 4000
- use hardware reset, connect under reset
- connect_assert_srst needed if low power mode application running (WFI...)
reset_config srst_only srst_nogate connect_assert_srst
set CONNECT_UNDER_RESET 1
source find target/stm32f4x.cfg
Any ideas?
Best regards