LS1043a QSPI programming issue

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

LS1043a QSPI programming issue

跳至解决方案
525 次查看
Might-Lee
Contributor III

QSPI FLASH: S25FS512

 I used the command "sf write" to program the image to QSPI, but it didn't work. It seems the image size will affect the program result. I have taken some program tests based on two scenarios below:

 The total image size is 54MB. I only programmed the first 16MB to the QSPI with command "sf write" at this scenario. Then using "sf read" to verify that I found the first 256 Bytes data was missing (Fig. 2). Afterward, I used CodeWarrior to read and check it successfully programmed that means there is no data missing. (Fig. 1)

 I used the "sf write" to program the first 32MB to the QSPI. Then using "sf read" to check, and I found all data was completely different with the original image. (Fig. 3)

 How can I fix this issue?

MightLee_0-1627234832661.png

Figure 1. Image file

 

MightLee_1-1627234832682.png

Figure 2. sf write 16MB to QSPI & read result

 

MightLee_2-1627234832704.png

Figure 3. sf write 32MB to QSPI & read result

 

标记 (2)
0 项奖励
1 解答
497 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Do you use LSDK 20.12?

How do you generate u-boot image?

On LS1043AQDS board, QSPI is support, you could generate SD boot firmware image with the following command to enable QSPI device in u-boot.

$ flex-builder -i mkfw -b sd -m ls1043aqds

在原帖中查看解决方案

0 项奖励
1 回复
498 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Do you use LSDK 20.12?

How do you generate u-boot image?

On LS1043AQDS board, QSPI is support, you could generate SD boot firmware image with the following command to enable QSPI device in u-boot.

$ flex-builder -i mkfw -b sd -m ls1043aqds

0 项奖励