cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Programmer_CLI 'Segmentation Fault' when using external loader file

FufiFlupi
Associate

Hi
I am trying to flash new FW to STM32L496 on custom board.
When I try to flash the ELF file from the GUI Cube-Programmer on windows using STLINK all I have to do is select the .stldr file, .elf file, and the programming goes on smoothly.
On my custom board I put the STM chip into bootloader mode, but when I try to flash the new FW I get Segmentation Fault error.
It looks like the error occur only when I use the -el flag with a .stdlr file.

Any help would be appreciated.

WhatsApp Image 2025-05-18 at 11.40.41.jpeg

 

1 ACCEPTED SOLUTION

Accepted Solutions

It doesn't work via DFU mode.

You'd need your own USB DFU code on the MCU to support access to the external memory.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2
Aziz BRIGUI
ST Employee

Hello @FufiFlupi,

Programming external memories via bootloader interfaces is not supported in STM32CubeProgrammer and by the STM32L4 series bootloader itself:

AzizBRIGUI_0-1747737717214.png

You can refer to STM32 microcontroller system memory boot mode application note for further details. Only debug interfaces (ST-Link & JLink) are supported in this use case. 

Aziz 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

It doesn't work via DFU mode.

You'd need your own USB DFU code on the MCU to support access to the external memory.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..