LSDK 20.12 u-boot debug print

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

LSDK 20.12 u-boot debug print

Jump to solution
1,850 Views
jekim
Contributor IV

Hello,

I'm using FRWY-LS1046A board with LSDK 20.12 release. I want to print out DDR related configurations to serial port. (teraterm or putty) So, I added below debug definitions at the top of u-boot/drivers/ddr/fsl/ctrl_regs.c file. The flex-builder and flex-installer were used for bootable SD card according to the FRWY-LS1046A BSP user guide. The SD booting is still working but it doesn't show any expected log message from many debug() macros in the c-code. Could you help me for this?

#define DEBUG
#undef CONFIG_LOGLEVEL
#define CONFIG_LOGLEVEL 8
#include <common.h>

Best Regards,

Jeff

0 Kudos
Reply
1 Solution
1,845 Views
bpe
NXP Employee
NXP Employee

LSDK 20.12 boot sequence in TF-A based. DDR memory initialization is performed
by TF-A code that executes before control is transferred to u-Boot. For this
reason, u-Boot DDR memory initialization routines are bypassed.

Suggestions:

1. Study LSDK User Guide Section 5.1.

2. Use a JTAG based, source level debugger to debug your code.

3. Refer to the right software package:

   https://source.codeaurora.org/external/qoriq/qoriq-components/atf

 

Best Regards,
Platon

 

View solution in original post

0 Kudos
Reply
2 Replies
1,846 Views
bpe
NXP Employee
NXP Employee

LSDK 20.12 boot sequence in TF-A based. DDR memory initialization is performed
by TF-A code that executes before control is transferred to u-Boot. For this
reason, u-Boot DDR memory initialization routines are bypassed.

Suggestions:

1. Study LSDK User Guide Section 5.1.

2. Use a JTAG based, source level debugger to debug your code.

3. Refer to the right software package:

   https://source.codeaurora.org/external/qoriq/qoriq-components/atf

 

Best Regards,
Platon

 

0 Kudos
Reply
1,836 Views
jekim
Contributor IV

Hi bpe,

 

Thank you for the answer. The debug print is working in TF-A code.

 

Best Regards,

Jeff

0 Kudos
Reply