S32G3 RDB3 boot from QSPI issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G3 RDB3 boot from QSPI issue

Jump to solution
2,236 Views
XD
Contributor II

Hi,

I am using bsp41 to generate QSPI images (fip.s32-qspi and fsl-image-flash-s32g399ardb3.flashimage). However, none of them are able to boot after I used S32flashtool to flash them into QSPI via UART. The command I used is:

S32G3xxx.bin -a MX25UW51245G.bin -fwrite -f fip.s32-qspi -addr 0

I am confused about the RDB3 dip switch settings. I followed the bsp41 user manual (section 4.3.3), changing SW4[3:4] and SW7[6], but it seems that the ON position is opposite from what I expected (top-side down). Another document mentioned setting all switches SW4-7 to OFF, but neither approach has resulted in a successful boot from QSPI. Can you clarify the correct dip switch settings or suggest other possible solutions?

Thanks,

XD

0 Kudos
Reply
1 Solution
2,214 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @XD 

Thanks for the post.

I have tested it from my side with pre-built images for QSPI boot, it seems working correct, below please find the switch settings for your reference.

chenyin_h_0-1726111317025.png

 

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
3 Replies
2,215 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @XD 

Thanks for the post.

I have tested it from my side with pre-built images for QSPI boot, it seems working correct, below please find the switch settings for your reference.

chenyin_h_0-1726111317025.png

 

 

BR

Chenyin

0 Kudos
Reply
2,195 Views
XD
Contributor II

Hi Chenyin,

Please disregard this issue. It turns out that the S32flashtool has a problem on Linux. While it works well for eMMC flashing, it doesn't seem to function properly with QSPI flashing. I have already matched the flash parameters to those used in the Windows version, and the same file successfully booted when flashed using the Windows tool. Thank you for your support.

Thanks,

XD

0 Kudos
Reply
2,211 Views
XD
Contributor II

Hi Chenyin,

Thank you for the dip switch setting.

I tried using the bsp41 pre-built fip.s32-qspi image, and you are correct—it successfully boots. However, the fip.s32-qspi image generated from the fsl-image-auto build(bsp41) does not boot. Do you know if I should be using a different command to generate the correct fip.s32-qspi QSPI image?

Thanks,

XD

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1951573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32G3%20RDB3%20boot%20from%20QSPI%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1951573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20using%20bsp41%20to%20generate%20QSPI%20images%20(fip.s32-qspi%20and%20fsl-image-flash-s32g399ardb3.flashimage).%20However%2C%20none%20of%20them%20are%20able%20to%20boot%20after%20I%20used%20S32flashtool%20to%20flash%20them%20into%20QSPI%20via%20UART.%20The%20command%20I%20used%20is%3A%3C%2FP%3E%3CP%3ES32G3xxx.bin%20-a%20MX25UW51245G.bin%20-fwrite%20-f%20fip.s32-qspi%20-addr%200%3C%2FP%3E%3CP%3EI%20am%20confused%20about%20the%20RDB3%20dip%20switch%20settings.%20I%20followed%20the%20bsp41%20user%20manual%20(section%204.3.3)%2C%20changing%20SW4%5B3%3A4%5D%20and%20SW7%5B6%5D%2C%20but%20it%20seems%20that%20the%20ON%20position%20is%20opposite%20from%20what%20I%20expected%20(top-side%20down).%20Another%20document%20mentioned%20setting%20all%20switches%20SW4-7%20to%20OFF%2C%20but%20neither%20approach%20has%20resulted%20in%20a%20successful%20boot%20from%20QSPI.%20Can%20you%20clarify%20the%20correct%20dip%20switch%20settings%20or%20suggest%20other%20possible%20solutions%3F%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EXD%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1953135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32G3%20RDB3%20boot%20from%20QSPI%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1953135%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Chenyin%2C%3C%2FP%3E%3CP%3EPlease%20disregard%20this%20issue.%20It%20turns%20out%20that%20the%20S32flashtool%20has%20a%20problem%20on%20Linux.%20While%20it%20works%20well%20for%20eMMC%20flashing%2C%20it%20doesn't%20seem%20to%20function%20properly%20with%20QSPI%20flashing.%20I%20have%20already%20matched%20the%20flash%20parameters%20to%20those%20used%20in%20the%20Windows%20version%2C%20and%20the%20same%20file%20successfully%20booted%20when%20flashed%20using%20the%20Windows%20tool.%20Thank%20you%20for%20your%20support.%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EXD%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1953004%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32G3%20RDB3%20boot%20from%20QSPI%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1953004%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Chenyin%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20the%20dip%20switch%20setting.%3C%2FP%3E%3CP%3EI%20tried%20using%20the%20bsp41%20pre-built%20fip.s32-qspi%20image%2C%20and%20you%20are%20correct%E2%80%94it%20successfully%20boots.%20However%2C%20the%20fip.s32-qspi%20image%20generated%20from%20the%20fsl-image-auto%20build(bsp41)%20does%20not%20boot.%20Do%20you%20know%20if%20I%20should%20be%20using%20a%20different%20command%20to%20generate%20the%20correct%20fip.s32-qspi%26nbsp%3BQSPI%20image%3F%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EXD%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1952949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32G3%20RDB3%20boot%20from%20QSPI%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1952949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHello%2C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235130%22%20target%3D%22_blank%22%3E%40XD%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%20for%20the%20post.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EI%20have%20tested%20it%20from%20my%20side%20with%20pre-built%20images%20for%20QSPI%20boot%2C%20it%20seems%20working%20correct%2C%20below%20please%20find%20the%20switch%20settings%20for%20your%20reference.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chenyin_h_0-1726111317025.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chenyin_h_0-1726111317025.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F298732iCE8244F01001BE03%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chenyin_h_0-1726111317025.png%22%20alt%3D%22chenyin_h_0-1726111317025.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EChenyin%3C%2FP%3E%3C%2FLINGO-BODY%3E