Skip to main content
Visitor II
June 6, 2011
Question

stm8l, eeprom, dma - problem of access

  • June 6, 2011
  • 7 replies
  • 2511 views
Posted on June 06, 2011 at 11:56

If writing

(

erasing

)

byte

(word, block)

in the

eeprom

memory

,

DMA

transaction

occurs

on the

periphery

of

RAM

(

tested

only

this

type of

transfer) of

the microcontroller

hangs

(not

working)

.

The documentation

no found 

indication

that it is impossible

to use the

DMA

controller

when working

with

EEPROM

memory

.

Tell me

anything

on this

issue.

P/S

Sorry

for

my

english

#stm8l151k6 #eeprom #dma
    This topic has been closed for replies.

    7 replies

    Visitor II
    June 10, 2011
    Posted on June 10, 2011 at 15:30

    I have exactly the same problem:

    Writing to the EEprom won't work if the DMA is active. This only happens sometimes, so I suppose this only happens when DMA transfer occurs.

    (I'm using the STM8L151G6.)

    At the moment my only solution for this is turning off the DMA before writing to the EEPROM.

    Then everything works fine.

    Is this a STM8L-bug or only not mentioned in the documentation?

    Visitor II
    June 12, 2011
    Posted on June 12, 2011 at 06:34

    I

    can not

    stop the

    DMA

    during

    the recording

    ,

    it seems

    I will

    put the

    external memory

    .

    I wrote

    to

    customer support

    , they

    replied

    that

    passes the request

    to the developers.

    It has been almost

    a week,

    but

    the answer

    or not

    :

    (

    Looks like

    a hardware

    bug

    .

    Visitor II
    July 11, 2011
    Posted on July 11, 2011 at 18:30

    Dear Mr. Zheleznjakov,

    the microcontroller division has confirmed that using DMA during EEPROM update causes a hang-up of the interface to the core - the state ''STALL'' remains active. There is currently no workaround except disabling DMA during EEPROM update.

    ST Employee
    July 12, 2011
    Posted on July 12, 2011 at 10:20

    Dear Mr. Zheleznjakov,

    even we have confirmed this limitation recently, investigation is not closed yet. We continue to investigate constraints required to see this limitation and impact on the product and application. We are looking for possible workarounds as well, even there is none know today.

    Full information will be released in a week or two as a part of our documentation.

    Thanks for understanding

    On behalf of MCD Technical Support

    Visitor II
    July 22, 2011
    Posted on July 22, 2011 at 09:46

    same problem on my side, I was struggling :(

    Visitor II
    August 3, 2011
    Posted on August 03, 2011 at 13:58

    Today I've seen, that STM has just published a new errata-sheet for the STM8L

    (

    http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/ERRATA_SHEET/CD00237242.pdf

    )

    There the problems with DMA and EEPROM are described.

    According to this errata sheet, there is no fix planned, but they are describing 3 workarounds....

    Visitor II
    August 4, 2011
    Posted on August 04, 2011 at 16:28

    fine :(