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.
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.
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
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.