LS1043a QSPI programming issue

cancel
Showing results for 
Search instead for 
Did you mean: 

LS1043a QSPI programming issue

Jump to solution
124 Views
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

 

Tags (2)
0 Kudos
1 Solution
96 Views
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

View solution in original post

0 Kudos
1 Reply
97 Views
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

View solution in original post

0 Kudos