LS1088A-RDB PB - CodeWarrior CWTAP JTAG CPU Connection

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

LS1088A-RDB PB - CodeWarrior CWTAP JTAG CPU Connection

625 Views
rapter465
Contributor II

I am currently trying to connect to the CPU on the LS1088A-RDB (PB) via JTAG on a CWTAP device. The goal here is to try to flash NOR from the JTAG to prove out recovery capabilities. In trying to connect, following the CodeWarrior Guide "CWARMv8TM - CodeWarrior Dev Studio for ARMv8", I am getting the following error:

(gdb) source ../../gdb_extensions/flash/cwflash.py
Starting flash programmer services...
Starting local server...
Successfully started gdb server 127.0.0.1:45000
Set gdb remote timeout to 7200
Connecting to target...
Using LS1088A SoC
Using CWTAP connected to local usb port
Using jtag speed 16000
Connecting to probe...
connected successfully
Successfully connected to probe
Initializing target...
Running init script c:\freescale\cw4net_v2020.06\cw_armv8\armv8\gdb_extensions\flash\scripts/../../../../Config/boards/LS1088A_RDB_init.py
[CW-WARN-MODAL]DDR: timeout while waiting for D_INIT.
DDR: initialization failed (ERR_DETECT = 0x00000080).
Initialized board LS1088A_RDB.
Flash programming operation failed.
//
Additional error details:
[FP: no device found]

Error: fail to select device nor
Closing debugger server...
Error: fail to start flash programming services.

 

I do recall that I had to patch LSDK 21.08 ddr_init.c for this dev board to get it to startup. I figure that I need to modify the LS1088A_RDB_init.py, but have no idea what value I should be updating it with. Any help would be greatly appreciated.

Labels (1)
0 Kudos
3 Replies

613 Views
yipingwang
NXP TechSupport
NXP TechSupport

First please download and install the latest CodeWarrior for ARMv8 11.5.11 update package.

Please login "www.nxp.com", then download CodeWarrior for ARMv8 11.5.11 update package from "MY NXP Account->Software Licensing and Support->View accounts->NXP Software->CodeWarrior Networked Suite - Specialist Level->11.5.X CodeWarrior for QorIQ LS Series ARMv8 ISA -> CodeWarrior for ARMv8 v11.5.11 b220924 Windows Offline Update".

Then open CodeWarrior IDE and install CodeWarrior 11.5.11 update package from Help->Install New Software->Add->Archive.

If the above doesn't work you need to modify LS1088A_RDB_init.py manually.

Please boot up the target board to stop at u-boot prompt.

In CodeWarrior IDE, please create a QCVS DDR project from File->New->QorIQ Configuration Project, in DDR configuration panel, please select "Configuration mode" as "From target", then click "Read from target".

After creating the project, please refer to file ddrCtrl_1.py under Generated_Code folder in Project Explorer panel.

0 Kudos

601 Views
rapter465
Contributor II

Thanks - I was able to get past DDR initialization after I manually merged the output of ddrCtrl_1.py into cwflash.py. Now that I am past that error, I am running into another:

(gdb) source ../../gdb_extensions/flash/cwflash.py
Starting flash programmer services...
Starting local server...
Successfully started gdb server 127.0.0.1:45000
Set gdb remote timeout to 7200
Connecting to target...
Using LS1088A SoC
Using CWTAP connected to local usb port
Using jtag speed 16000
Connecting to probe...
connected successfully
Successfully connected to probe
Initializing target...
Running init script c:\freescale\cw4net_v2020.06\cw_armv8\armv8\gdb_extensions\flash\scripts/../../../../Config/boards/LS1088A_RDB_init.py
Enabling DDR controller
Initialized board LS1088A_RDB.
Flash programming operation failed.
//
Additional error details:
[FP: no device found]

Error: fail to select device nor
Closing debugger server...
Error: fail to start flash programming services.

 

I validate that I am booting from QSPI NOR, and paused u-boot at startup. Additionally, I verified on the LS1088A-RDB (PB) that the CWTAP_SEL jumper is removed to ensure it's in ARM program mode (as opposed to CPLD).

0 Kudos

592 Views
yipingwang
NXP TechSupport
NXP TechSupport

Have you modified FLASH_TYPE = "qspi" in C:\Freescale\CW4NET_v2020.06\CW_ARMv8\ARMv8\gdb_extensions\flash\cwflash.py?

You could do flash programing in CodeWarrior IDE.

In Target Connections panel of CodeWarrior IDE, please duplicate LS1088A_RDB to generate LS1088A_RDB(1), then click the flash programmer icon to do flash programing.

yipingwang_0-1668676371949.png

 



 

0 Kudos