Can I write (program) one byte to the flash or maybe only one word(32 bits)

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

cross mob
User20853
Level 1
Level 1
First question asked First reply posted First solution authored
hi

i plan to have a growing list that will be needed from reset (or power off) to reset.

Each entry in list is a byte (could be a word of 4 bytes), as I need it from start up to start up, how and where should I put the new value.

I thought I could write 1 byte to flash at address 0x0c000000 and then to 0x0c000001 (or to 0x0c000004) but all the examples I have show only 256 bytes as minimum.

what is right? wher do i see it in manual?

regards,
Maccabi
0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked
Hi,

Are you uisng XMC1000 family device? The minimum size to erase the flash is one page size (256 bytes) and to write data into the flash, the minimum size is one block (16 bytes). Kindly follow the appnote
for sample code.

Best Regards,
Vasanth

View solution in original post

0 Likes
1 Reply
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked
Hi,

Are you uisng XMC1000 family device? The minimum size to erase the flash is one page size (256 bytes) and to write data into the flash, the minimum size is one block (16 bytes). Kindly follow the appnote
for sample code.

Best Regards,
Vasanth
0 Likes