LS1021A custom board programming with JTAG - CodeWarrior TAP

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

LS1021A custom board programming with JTAG - CodeWarrior TAP

Jump to solution
2,516 Views
arunkr
Contributor III

Hi,

We are having a custom board based on LS1021A rev2.0 chip. The board is to be booted from QSPI only, no SD card support is there.

We are trying to program the chip using CodeWarrior TAP (Rev E) (Code Warrior Development Studio for QorIQ LS series - ARM V7 ISA- Version10.0.7). And we are facing issue.

The hard coded RCW in the LS1021A is not having QSPI support, but IFC NAND. So, with bareboard we are not able to load the custom RCW or uboot.

We tried to override the QSPI/IFC pinmuxing to enable QSPI, through JTAG, following some forum posts   (We are bringing up a new p3041 cpu board using Codewarrior Tap and can't get RCW override to work pr... )  with the files LS102xAQDS_RCW_1000-400-1600.txt, LS102xATWR_RCW_1000-300-1600.txt etc in the directory "CodeWarrior_ARMv7_10.0.7/ARMv7/ARM_Support/Configuration_Files/jtag_chains/'  and we are getting error "Failed to correctly configure the JTAG chain" similar to the forum below: Failed to correctly configure the JTAG chain 

How to resolve this ? How to program the LS1021A chip with QSPI enabled on bareboard ?

Labels (1)
0 Kudos
1 Solution
1,666 Views
arunkr
Contributor III

Hi Pavel,

The issue is solved. The issue was with the LS1021A-IOT reference board we were having, which was of  silicon rev 1.0 board.

When used rev2.0 board, the issue is resolved, and able to override the RCW field.

Thnaks,

Arun

View solution in original post

0 Kudos
5 Replies
1,666 Views
Pavel
NXP Employee
NXP Employee

Use the LS1021A-IOT Rev B SDK 0.4.:

https://www.nxp.com/webapp/Download?colCode=LS1021A-IOT-REV-B-SDK-0.4&appType=license&location=null&...

This SDK supports QSPI booting.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,666 Views
arunkr
Contributor III

Hi Pavel,
Thanks for you replay.
we are using SDK 0.4 only.
We need help on JTAG programming with CodeWarrior TAP on LS1021A chip in a bareboard, with enabling QSPI pins instead of IFC on hardcoded RCW.
Please help us on this issue.

Thanks
Arun

0 Kudos
1,666 Views
Pavel
NXP Employee
NXP Employee

CodeWarrior supports RCW loading using JTAG. CodeWarrior for ARMv7 contains RCW for QSPI booting. Use the following path:

C:\Freescale\CW_ARMv7_v10.0.7\ARMv7\ARM_Support\Configuration_Files\jtag_chains

See the Section 8.2 of the CW_ARMv7_Targeting_Manual.pdf.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,667 Views
arunkr
Contributor III

Hi Pavel,

The issue is solved. The issue was with the LS1021A-IOT reference board we were having, which was of  silicon rev 1.0 board.

When used rev2.0 board, the issue is resolved, and able to override the RCW field.

Thnaks,

Arun

0 Kudos
1,666 Views
arunkr
Contributor III

Hi Pavel, Thanks for the replay.

We tried the to override the RCW fields in order to enable QSPI, as mentioned on the document. But we are getting an error while doing this as follows: (I have attached the screen shot of the error)

Run->Debug Configuration ->Edit (Near Target settings,Connection Type is LS1021A-IOT-core0_RAM_LS1021AIOT_Download Target) -> Edit (In Hardware or Simulator Connection Window; current connection type is Codewarrior TAP;)-> Edit ( In Hardware or Simulator Target Window; ) -> Import (Here we browsed and imported LS1021xATWR_RCW_1000-300-1600_QSPI.txt from the location 'C:\Freescale\CW_ARMv7_v10.0.7\ARMv7\ARM_Support\Configuration_Files\jtag_chains'; then OK) -> OK (In Hardware or Simulator Target Window; )-> OK (In Hardware or Simulator Connection Window; )-> Debug (in Debug Configuration Window - ie, First popup window).

Then we got error as follows after 3 or 4 seconds : 
"Error launching LS1021A-IOT-core0_RAM_LS1021AIOT_Download

CCSProtocolPlugin : Failed to correctly configure the JTAG chain"

(Screen shot attached).

Please have a look at it and help

Thanks,
Arun

JtagChain.PNG