Skip to main content
mjourdan
Associate
March 2, 2016
Question

STM32L0 EEPROM and DMA

  • March 2, 2016
  • 2 replies
  • 903 views
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
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 2, 2016
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 VenmoUp vote any posts that you find helpful, it shows what's working..
mjourdan
mjourdanAuthor
Associate
March 3, 2016
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''.