Switching from BL2 to BL31 with LX2160A Discrete DDR custom board

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

Switching from BL2 to BL31 with LX2160A Discrete DDR custom board

590 Views
YeongK
Contributor I

I have a halt problem on switching from BL2 to BL31 with LX2160A Discrete DDR custom board. Last message on UART output is the loading image BL31, BL32, BL33 and the function name and line number. I have attached the Codewarrior probe and found the core is halt on SYNC_EXCEPTION_SP_ELX handling. If I comment out the disable MMU line on  bl2_run_next_image function it goes the BL31 but still fails at first line on bL3 with the permission fault in EL2. I have checked the memory address translation table but the DDR address space is not on the mapping table. Is that OK that not having DDR address translation on the remap table? If it is not, how can I add the DDR address mapping into the table? Any recommendations on debugging this issue?

Thanks in advance for your help.

0 Kudos
Reply
1 Reply

547 Views
yipingwang
NXP TechSupport
NXP TechSupport

1. You could use QCVS DDRv tool to connect to the custom board to do validation and optimization to get optimized DDR initialization parameters and used them in ATF software. Please refer to DDRv user manual https://www.nxp.com/docs/en/user-guide/QCVS_DDR_User_Guide.pdf.

 

2. Please refer to the following document to debug ATF software.

https://community.nxp.com/t5/Layerscape-Knowledge-Base/Debugging-ATF-and-u-boot-with-CodeWarrior-for...

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2185432%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESwitching%20from%20BL2%20to%20BL31%20with%20LX2160A%20Discrete%20DDR%20custom%20board%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2185432%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20a%20halt%20problem%20on%20switching%20from%20BL2%20to%20BL31%20with%20LX2160A%20Discrete%20DDR%20custom%20board.%20Last%20message%20on%20UART%20output%20is%20the%20loading%20image%20BL31%2C%20BL32%2C%20BL33%20and%20the%20function%20name%20and%20line%20number.%20I%20have%20attached%20the%20Codewarrior%20probe%20and%20found%20the%20core%20is%20halt%20on%26nbsp%3BSYNC_EXCEPTION_SP_ELX%20handling.%20If%20I%20comment%20out%20the%20disable%20MMU%20line%20on%26nbsp%3B%26nbsp%3Bbl2_run_next_image%20function%20it%20goes%20the%20BL31%20but%20still%20fails%20at%20first%20line%20on%20bL3%20with%20the%20permission%20fault%20in%20EL2.%20I%20have%20checked%20the%20memory%20address%20translation%20table%20but%20the%20DDR%20address%20space%20is%20not%20on%20the%20mapping%20table.%20Is%20that%20OK%20that%20not%20having%20DDR%20address%20translation%20on%20the%20remap%20table%3F%20If%20it%20is%20not%2C%20how%20can%20I%20add%20the%20DDR%20address%20mapping%20into%20the%20table%3F%20Any%20recommendations%20on%20debugging%20this%20issue%3F%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189499%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Switching%20from%20BL2%20to%20BL31%20with%20LX2160A%20Discrete%20DDR%20custom%20board%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189499%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E1.%20You%20could%20use%20QCVS%20DDRv%20tool%20to%20connect%20to%20the%20custom%20board%20to%20do%20validation%20and%20optimization%20to%20get%20optimized%20DDR%20initialization%20parameters%20and%20used%20them%20in%20ATF%20software.%20Please%20refer%20to%20DDRv%20user%20manual%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FQCVS_DDR_User_Guide.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FQCVS_DDR_User_Guide.pdf.%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E2.%20Please%20refer%20to%20the%20following%20document%20to%20debug%20ATF%20software.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape-Knowledge-Base%2FDebugging-ATF-and-u-boot-with-CodeWarrior-for-ARMv8%2Fta-p%2F1684233%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape-Knowledge-Base%2FDebugging-ATF-and-u-boot-with-CodeWarrior-for-ARMv8%2Fta-p%2F1684233%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E