cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with duplicate flash memory content

Lionel O
Associate
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
1 ACCEPTED SOLUTION

Accepted Solutions
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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

1 REPLY 1
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
Up vote any posts that you find helpful, it shows what's working..