cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L0 EEPROM and DMA

mjourdan
Associate
Posted on March 02, 2016 at 12:11

Hello,

I'm using the internal EEPROM on a brand new STM32L021.

In order to save some data into that EEPROM in an ''asynchronous'' way, I use DMA1 channel 1 in MEM2MEM configuration.

My issue is that as soon as DMA_CCR_EN bit is set, the execution freeze until the data has actually been writen. So the behaviour is the same as if I had used a program ''load and store''.

Is there any trick or information I didn't notice ?

#eeprom #stm32l0 #dma
2 REPLIES 2
Posted on March 02, 2016 at 15:13

Is there any trick or information I didn't notice ?

Execution from RAM perhaps?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mjourdan
Associate
Posted on March 03, 2016 at 09:32

As far as I understand, the data remains in the bus (maybe not the current one that may be in a NVM buffer, but the next) until it have actually been written in EEPROM.

So the bus stall and CPU is ''frozen''.