Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

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

AURIX™ Forum Discussions

Chinmay
Level 1
Level 1
First reply posted First like given First question asked

Hello,

I am trying to come up with a method to perform wear leveling in the Dflash EEPROM (AURIX TC265).

After going through user manual, example code and couple of other posts in this forum, the correct way of writing to Dflash is: (Please correct this if it is wrong)

1. Erase entire sector(8KB)

2. Enter Page mode with page address

3. Load data to be written

4. Write page/ write burst.

Repeat step 3 and 4 until needed amount of data is written to DFlash.

The data that I want to write to Dflash is not more than 32 bytes in total. So, I was looking for a technique to spread out these 32 bytes write in the logical sector (8192 bytes) itself every time I need to store a new dataset. Is this possible? Or am I limited to spread out my writes across sectors and not on page level, as erase command works only on sector level and not on page level?

 

Thanks,

Chinmay

 

0 Likes
0 Replies