I have example code for flash module.
How to check the flash module is working fine, I have checked in Physical address also its given random values in that memory.
How to write ,read and erase on Flash memory?
I checked in flash registers also, I don't know which registers I need to look on it.
Can you give me the solution for this?
I attached the memory location pic also.
已解决! 转到解答。
Hi @qazx
attached are possible reasons. The first one is usually the source of issues.
Regards,
Lukas
Hello @lukaszadrapa
I have tried flashing only with internal sector flash , i cant to do write operation .
In user manual some limitations is there for C40_internal flash.
How to do the write operation in flash.
I can able to read from memory , its showing default value FFFFFFFF.
Hi @qazx
First step is to check the PEG flag:
Second step is to read the programmed data back from flash for confirmation it was programmed correctly. Notice that it may be necessary to invalidate the data cache if data cache is enabled and if previous data are already cached.
And two important notes:
1. User is allowed to program only fully erased double-word. Cumulative programming is not allowed.
2. Read-while-write is supported only between read partitions / blocks. It is not possible to access a partition which is being programmed or erased. The code must be executed from another partition or from RAM.
Regards,
Lukas
Well, what kind of example code do you have? Is that your own code or is that an example from RTD package? If it is from RTD - which one and which version of RTD? Is that original RTD example or modified one?
Regards,
Lukas