CY9BF114N Data written to the Mainflash is not correct

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

cross mob
lock attach
Attachments are accessible only for community members.
Unic
Employee
Employee
10 sign-ins First like received First like given

Hi,

        I was writing data to the main Flash using 16bit, and there was a discrepancy between the data read and the data written. I used the reference routine to simplify the code that could cause problems.

CY9BF114NPMC-G-JNE2 

 

Best regards,

Thanks

0 Likes
1 Solution
Unic
Employee
Employee
10 sign-ins First like received First like given

 Hi ChengCaiT_16,

        十分感谢您的回答,我确认过32bit的整数倍写入是没有问题的。

        我想我可能需要的不是解决方法。

        如果您有更多的了解可以加入IFX-230619-977575回复我,再次感谢。

View solution in original post

0 Likes
3 Replies
ChengCaiT_16
Employee
Employee
First reply posted Welcome!

Hi,

The flash write data size please keep 4-byte align, please try to change the TEST_SIZE as 8.

Best regards,

Thanks

 

0 Likes
Unic
Employee
Employee
10 sign-ins First like received First like given

 Hi ChengCaiT_16,

        十分感谢您的回答,我确认过32bit的整数倍写入是没有问题的。

        我想我可能需要的不是解决方法。

        如果您有更多的了解可以加入IFX-230619-977575回复我,再次感谢。

0 Likes
ChengCaiT_16
Employee
Employee
First reply posted Welcome!

Hi,

Don't forget  change MFlash_WriteData16Bit((uint16_t*)TEST_MAIN_SECTOR, (uint16_t*)u8TestData, 3);

to:

MFlash_WriteData16Bit((uint16_t*)TEST_MAIN_SECTOR, (uint16_t*)u8TestData, 4);

 

Best regards,

Thanks

0 Likes