Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
sanket
Level 1
Level 1
5 replies posted First reply posted First question asked

Hello,

I am facing an issue while writing data to the DFlash memory region. I am using the TC375 Flash programming Example code with some changes. Below is the scenario for which I am facing the issue.

1. The first time writing data (0xAF000400) to the address 0xAF000240 is writing successfully.

sanket_1-1713959653316.png

2. reading data from 0xAF000240 reading successfully.

3. If I write the data that is read from 0xAF000240 to the same address by updating the data with some other value, the memory(0xAF000240) is filling with zeros (0x00000000).

Can any one please suggest the solution. 

Thank you very much !

 

 

 

 

0 Likes
1 Solution

I notice the start address of erase is the same as write address.  all is 0xAF000240, is right?

If Yes,  please make sure the erase address align with 4k, it should be 0xAF000000.

View solution in original post

0 Likes
9 Replies
eric_zhao
Level 4
Level 4
First like given First question asked 25 sign-ins

Hi @sanket ,

Did you earse the sector before writting to same the address? 

 

0 Likes

Hi @eric_zhao ,

I am erasing the sector before writing but still, I am facing the same issue.

sanket_0-1714026070616.png

 

0 Likes

What is the data size you write and read it?

Please note the minimal unit is one page which is 8 bytes. 

0 Likes

Yes, one page 8 byte only writing to DFlash memory.

0 Likes
sanket
Level 1
Level 1
5 replies posted First reply posted First question asked

Not able to write the data in DFlash memory. Below is the scenario that I am trying to write.

sanket_0-1714027706663.png

Please have look on attached screeshot.

Thank you.

 

0 Likes
eric_zhao
Level 4
Level 4
First like given First question asked 25 sign-ins

Hi @sanket ,

Could you post the code snippet ? Including the Dflash write and read.

 

0 Likes

Hi @eric_zhao , 

I have attached the code snippet. Please have a look.

sanket_0-1714029453531.pngsanket_1-1714029497623.png

 

0 Likes

I notice the start address of erase is the same as write address.  all is 0xAF000240, is right?

If Yes,  please make sure the erase address align with 4k, it should be 0xAF000000.

0 Likes

Hi @eric_zhao ,

I have tried erasing with address 0xAF000000 is working fine.

The logging space reserved is 1Kb from AF000240, other data are present in between AF000000 to AF000240.

so, any provision to update the memory location with new data without erasing other data available in same page.

Thanks for your support.

0 Likes