how could i re-write SPI ROM data by FX3 SPI

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

cross mob
falu_294486
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

 Hi,

   

i can read SPI ROM form FX3 SPI,

   

when i re-write 1 byte from n page, but the bute can not change?

   

what's wrong!?

0 Likes
4 Replies
falu_294486
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

 i try to read 4k byte data and erase 4k byte,

   

than  i change 1 byte and re-write to SPI ROM

   

the code goto bootload.

   

have someone tell me what's wrong

0 Likes
Anonymous
Not applicable

 Hi what do you mean by the "code goes to bootload"?

   

can you please explain this in detail? If possible, please send us snapshots on what you are seeing?

   

Regards,

   

- Madhu Sudhan

0 Likes
falu_294486
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

 Hi Madhu Sudhan

   

I have a normal code in SPI ROM,

   

Now, i read SPI ROM the n'th page date 4k byte.

   

And i erase the n'th page data than re-write new 4k byte to the n'th page.

   

When i reset, the code can not run my normal code, it is run boot code.

0 Likes
Anonymous
Not applicable

 Hi,

   

It is not recommeded to make such editings to the Boot Code at random nth locations. The Boot image has a format, which if edited, the mage becomes corrupt.

   

In case of a corrupt image the the boot mode will fall back from SPI to USB.

   

Regards,

   

- Madhu Sudhan

0 Likes