cancel
Showing results for 
Search instead for 
Did you mean: 

Problem saving data in flash memory.

LMehm
Associate II

Hello, guys!

I have problem saving data in STM32L0's flash memory.

If I save the data twice in the same location it works fine.

If I save the data once CRC check fails - data writing goes wrong?!

I have attached my code.

Sorry for the "magic" numbers in the code!

Thank you!

10 REPLIES 10
LMehm
Associate II

​I think that this is a processor issue - i found somewhere in the code that i need to check the processor version and if it is up to some version I have to ignore this error writting dummy byte and then i have to write the actual data.I will post the exact statements from the code - i have to find them it again.