STM32Programmer_CLI 'Segmentation Fault' when using external loader file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-18 5:47 AM
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.
Solved! Go to Solution.
- Labels:
-
STM32CubeProgrammer
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-20 3:51 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-20 3:46 AM - edited ‎2025-05-20 3:47 AM
Hello @FufiFlupi,
Programming external memories via bootloader interfaces is not supported in STM32CubeProgrammer and by the STM32L4 series bootloader itself:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-20 3:51 AM
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.
Up vote any posts that you find helpful, it shows what's working..
