Can we use JTAG to check whether the boot configuration is correct or not?

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

Can we use JTAG to check whether the boot configuration is correct or not?

496 Views
DohwanAhn
Contributor II

We made a new board with lx2160a (lsdk_20.04) and flash device is mt25qu512abb. (quad SPI)
We modified the xml using jtag (flash programmer of CW) and downloaded it.

fl_unprotect 0x0 0x4000000
fl_erase 0x0 0x4000000
fl_write 0x0 firmware_lx2160ardb_rev2_uboot_xspiboot.img --erase –verify
fl_dump 0x0 0x4000000

The dumped file is same to the image.
However, when I try to boot with xspi boot, I can't see the serial messages.
We wants to check if the boot configuration is correct or not.

Can we use JTAG to check whether the boot configuration is correct or not?
and Are there other ways we can check?

Thanks, 

0 Kudos
2 Replies

479 Views
yipingwang
NXP TechSupport
NXP TechSupport

First you need to modify CodeWarrior initialization file to replace MT35XU512ABA with mt25qu512abb.

As usual, you need to modify LSDK source code to make it suitable for your custom board.

In LSDK, you need to modify packages/firmware/rcw/lx2160ardb_rev2/XGGFF_PP_HHHH_RR_19_5_2/rcw_2000_700_2900_19_5_2.rcw according to your custom board, then rebuild rcw, atf and the firmware image.

In CodeWarrior IDE, target Connections panel, there is icon "Inspect (attach to running) target", please click it to check whether CodeWarrior can connect to the target board and read the assembly code back through JTAG.

yipingwang_0-1668758464678.png

 

0 Kudos

460 Views
DohwanAhn
Contributor II

We have already applied the xml and built the firmware. However, our board is not working normally. I guess I need to check further.

Thanks,

0 Kudos