Skip to main content
Lionel O
Visitor II
January 6, 2017
Solved

Issue with duplicate flash memory content

  • January 6, 2017
  • 1 reply
  • 731 views
Posted on January 06, 2017 at 15:42

Hello,

Here is my issue.

I have a 100 KBytes of code in my flash memory and I need to duplicate this code into another part of the memory.

I use a copy function to read 4 bytes and copy them in the new memory area and repeat this until all memory has been written.

But, almost each try is unsuccessful and severals bytes are not duplicated (~10 to 20) and they are always located at the same flash addresses. (but not continuously)

My MCU is a STM32L151CC.

Does anybody have experienced this ?

Thanks.

#flash-memory #duplicate #flash #flash-programming
This topic has been closed for replies.
Best answer by Tesla DeLorean
Posted on January 06, 2017 at 16:36

>>

Does anybody have experienced this ?

You want to frame the question in a way that might solve it rather than find the fractional subset of participants with exactly the same symptoms..

What code are you using to do this with?

Does it handle errors and initial states well?

Does it erase memory first?

Does it verify things as it goes along?

Does it occur with/without the debugger attached?

Can you illustrate the failure with examples?

I've generally found the STM32 Flash memories to be quite robust. The units that have come back across my desk with flash corruption issues tend to be because the customer didn't follow instructions properly, and removed power or reset during critical operations.

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
January 6, 2017
Posted on January 06, 2017 at 16:36

>>

Does anybody have experienced this ?

You want to frame the question in a way that might solve it rather than find the fractional subset of participants with exactly the same symptoms..

What code are you using to do this with?

Does it handle errors and initial states well?

Does it erase memory first?

Does it verify things as it goes along?

Does it occur with/without the debugger attached?

Can you illustrate the failure with examples?

I've generally found the STM32 Flash memories to be quite robust. The units that have come back across my desk with flash corruption issues tend to be because the customer didn't follow instructions properly, and removed power or reset during critical operations.

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