CX3, Accessing Un-allocated space in a SPI flash memory

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

cross mob
AkCh_1378701
Level 3
Level 3
First like given

Hi sir,

I am using a flash memory PN named ST M25P40, it has 512K Bytes size.

a custom cypress cx3 firmware being used currently has around 200K Bytes size, so, the SPI memory should have 300K Bytes free space.

  • First question

          Is it OK recording some data into this "not used" 300K Bytes space?

  • Second question,

     How to program data into those un-used space?

Thank you

0 Likes
1 Solution
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

To answer your question:

1. It's ok to write data into those space.

2. You can refer to the "UsbSpiRegMode" example program in FX3 SDK.

By specifying the parameter of function "CyFxSpiTransfer", you can write data to specified address.

Regards,

Eddie

View solution in original post

0 Likes
2 Replies
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi,

To answer your question:

1. It's ok to write data into those space.

2. You can refer to the "UsbSpiRegMode" example program in FX3 SDK.

By specifying the parameter of function "CyFxSpiTransfer", you can write data to specified address.

Regards,

Eddie

0 Likes
AkCh_1378701
Level 3
Level 3
First like given

thank you.

i will try it..

0 Likes