Skip to main content
WLord
Visitor II
November 23, 2018
Question

Does the Lower Level library have any support for writing to the internal flash on the STM32L4xx family?

I have only managed to find examples using HAL libraries which I am not fond of. I Have been looking through the LL header files genereated by STM32cubeMX for any flash programing information at all but I was unable to find any. If there is not support, can someone please point me in the direction of resources that I can use to come up with the code.

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
November 23, 2018

Doesn't look to be a specific LL file, but flashing STM32 parts isn't particularly complicated, I've coded routines in assembler to do it. The complexity on the L4 is really the 64-bit wide aligned writes.

The unlock is the matter of writing the keys, and writing you set the PG bit, write and spin on completion/error.

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