S25HS512T Flash chip -- Used the Linux drivers from Infineon

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Balaji
Level 1
Level 1
10 sign-ins 5 replies posted 5 questions asked

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.

0 Likes
1 Solution
BushraH_91
Moderator
Moderator
Moderator
750 replies posted 50 likes received 250 solutions authored

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

View solution in original post

0 Likes
1 Reply
BushraH_91
Moderator
Moderator
Moderator
750 replies posted 50 likes received 250 solutions authored

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

0 Likes