- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All,
Tried the below cmds:
flash_erase /dev/mtdx 0 0
It gives as success. After this, read the contents
mtd_debug read /dev/mtdx 0 262144 file.txt
In this file, first 4KB, it has 0xff and other addresses, it has some garbage values.
I could not find out the reason for this.
Any inputs.
Previously, Erase operation was working in properly, i.e. after erase, the memory values are 0xFF. For testing purpose, power off the board without giving the sync command. How to get back this to old state.
Tried in multiple times, i.e. erase operations. But it is in same condition.
-Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for contacting Infineon Community Forum.
This looks like only the first parameter sector (4kB) is successfully erased. Such an issue can be caused by the MTD not being able to handle non-uniform sector layout.
The flash_erase in mtd-utils does not support non-uniform sector layout.
The workarounds are:
1) configure the device to uniform by setting CFR3N[3] = 1, or
2) exclude the first 256kB from the MTD partition
Thank you
Regards,
Bushra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for contacting Infineon Community Forum.
This looks like only the first parameter sector (4kB) is successfully erased. Such an issue can be caused by the MTD not being able to handle non-uniform sector layout.
The flash_erase in mtd-utils does not support non-uniform sector layout.
The workarounds are:
1) configure the device to uniform by setting CFR3N[3] = 1, or
2) exclude the first 256kB from the MTD partition
Thank you
Regards,
Bushra