Flash Read Alignment Issue - Data Reads from 2n Instead of 2n+1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Flash Read Alignment Issue - Data Reads from 2n Instead of 2n+1

跳至解决方案
1,043 次查看
zyz
Contributor III
Recently, when using the S32G274 M7 core to read data from flash, I encountered a forced alignment issue. When attempting to read data starting from an address 2n+1, the returned data starts from address 2n. However, reading from address 2n does not have this problem. We are bypassing FEE and directly using the FLS driver to operate the flash. The MCAL version is: SWS32G_RTD_4.4_4.0.2.
 
Who can help me, thank you.
0 项奖励
回复
1 解答
953 次查看
zyz
Contributor III
Hi carlos_o,
Thank you for your support. I have already solved the problem on my side. This 2-byte alignment issue is caused by the inherent characteristics of FLASH and is not related to the software.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,022 次查看
carlos_o
NXP TechSupport
NXP TechSupport

Hi @zyz,

Are you using a custom board? if not is it an RDB or EVB? 

If you are using a custom board, which model of QSPI are you using? 

The problem is when you are doing the bypass of the FEE driver and using directly the FLS? or this is a workaround? 

 

 

0 项奖励
回复
1,012 次查看
zyz
Contributor III

Hello carlos_o,

Yes, I am using our custom board with QSPI DDR mode. The flash model is MX25UW51245G.
 
I discovered this issue when directly using FLS.
0 项奖励
回复
980 次查看
carlos_o
NXP TechSupport
NXP TechSupport

Hi @zyz 

I recommend try first with the IP functions instead of MCAL, you can see how it works at the Spi_Ip_Transfer example. Let me know if the issue persists. 

0 项奖励
回复
954 次查看
zyz
Contributor III
Hi carlos_o,
Thank you for your support. I have already solved the problem on my side. This 2-byte alignment issue is caused by the inherent characteristics of FLASH and is not related to the software.
0 项奖励
回复
941 次查看
carlos_o
NXP TechSupport
NXP TechSupport

Hi @zyz

great to hear that. Let us know if there is anything we can do to help.

0 项奖励
回复