Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


Issue on debug session NUCLEO-F091RC

Hi,
I have a NUCLEO-F091RC and “System Workbench for STM32 AC6 Tools based on Eclipse”. I created a new project from an existing BOOTLOADER. I compile and build all correctly, but when I start the debug session the program stops all with this information:

Error in final launch sequence
Failed to execute MI command:
load C:\Users\andreacavazzoni\Desktop\FW_AN\en.stm32cubef0\STM32Cube_FW_F0_V1.9.0\Projects\STM32F091RC-Nucleo\Examples\GPIO\GPIO_IOToggle\SW4STM32\STM32F091RC-Nucleo_BTLD\Debug\STM32F091RC-Nucleo_BTLD.elf

Error message from debugger back end:
Load failed
Load failed

How can I fix it?
Thank you.
Andrea Cavazzoni

I adding information from console in debug mode before error appears:

Open On-Chip Debugger 0.10.0-dev-00004-gcef2a8c-dirty (2017-08-31-14:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 950 kHz
adapter_nsrst_delay: 100
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v29 API v2 M v18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.271287
Info : Stlink adapter speed set to 950 kHz
Info : STM32F091RCTx.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
Info : Stlink adapter speed set to 950 kHz
adapter speed: 950 kHz
STM32F091RCTx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x080021e8 msp: 0x20008000
Info : Stlink adapter speed set to 950 kHz
adapter speed: 950 kHz
Info : device id = 0x10006442
Info : flash size = 256kbytes
Info : Stlink adapter speed set to 950 kHz
adapter speed: 950 kHz
STM32F091RCTx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x080021e8 msp: 0x20008000
Info : dropped ‘gdb’ connection

Hi,

Did you change the linker script file FLASH addresses ?
I mean, is your program starting at 0x0800 0000 like a normal program ?

Is it a bootloader program you’re trying to debug or a simple GPIO toggle ?
If you want to debug a simple GPIO toggle, just import it from the HAL FW examples.

Rgds,
Laurent

Hi Laurent,
the simple GPIO toggle works well. I changed the memory because I want to create a bootloader firmware starting from the GPIO toggle.

/* Memories definition */
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K - 192
ROM (rx) : ORIGIN = 0x8000000, LENGTH = 12K
}

Best regards,
Andrea