JTAG Connection and Flash Programming Problem LS1012A

cancel
Showing results for 
Search instead for 
Did you mean: 

JTAG Connection and Flash Programming Problem LS1012A

682 Views
mail2abd
Contributor I

Hi All,

We have made a custom board with LS1012A 600MHz version (LS1012AXN7EKB),
and we are unable to connect to the Processor with CodeWarrior-TAP.

NOTE : We are NOT using "CMSIS-DAP INTERFACE" (MK20DX128VFM5)
We have connected the JTAG signal directly to the Processor


Clock Source "External Clock" 25MHz.

H/W Settings (Hardcoded - RCW)
cfg_sysclk_sel (QSPI_A_CS0) -- Pull Down
cfg_func_backup (QSPI_A_DATA1) -- Pull Down
cfg_eng_use -- Pull-Up
cfg_eng_use2 -- Pull-Up ( we are using External Clk)
cfg_rcw_src -- Pull-Down


Peripherals Used
================
1. QSPI - S25FS512SAGMFI011
2. SDHC1 - Connected to uSD-Card
3. SDHC2 - eMMC Flash (IS21ES16G-JQLI)
4. SERDES - Lane-A : SGMII
Lane-B : UnUsed
Lane-D : SATA

Board Voltage Levels
====================
Core and Platform voltage : 0.896V
PLL supply voltage : 1.776V
Oscillator PLL supply voltage : 1.345V
SerDes PLL supply voltage : 1.345V
O1VDD, O2VDD voltage : 1.797V
EVDD voltage : 3.315V
DDR3L DRAM I/O voltage : 1.345V
XTAL IO and osc supply voltage : 1.797V
XOSC PLLvoltage : 0.896V

Target Initilization script
===========================
USE_SAFE_RCW = TRUE

I this case we are getting the following error
/***************************************************************/
ERROR: Memory access failed.
//
Additional error details:
Failed to write memory at address 0x1ee00e4 on core CortexA53#0.
Core CortexA53#0 not found on the JTAG chain.
Please verify that the Reset Configuration Word is correct, or enable RCW Override in the initialization file.
/***************************************************************/

 

Target Initialization Script:
USE_SAFE_RCW = False


We have witten the RCW values to QSPI flash using External programmer.
RCW Values for your Ref

/********************************************************************/
00000000: aa 55 aa 55 01 ee 01 00 08 00 00 06 00 00 00 00
00000010: 00 00 00 00 00 00 00 00 33 05 00 00 c0 00 00 0c
00000020: 40 00 00 00 00 00 18 00 00 00 00 00 00 00 00 00
00000030: 00 00 00 00 00 0c 47 f2 00 00 00 00 10 c2 a1 20
00000040: 00 00 00 96 00 00 00 00 09 55 00 00 00 0f 40 0c
00000050: 09 57 06 04 40 10 00 00 09 57 01 5c 50 10 00 00
00000060: 09 57 06 00 00 00 00 00 08 61 00 40 33 52 b6 69
/********************************************************************/


RCW error encountered. In order to diagnose the error temporarily change the board configuration switches to ignore the assertion of the RESET_REQ_B signal.
Please refer to board reference manual in order to locate the appropriate switch that controls this behavior.


Please Help us to resolve this issue.
Thanks.

--
R.Abdul Rahman

 

1 Reply

659 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please try whether the following steps would be helpful.

1. Please configure the target board to use hard-coded RCW mode, please configure cfg_rcw_src as 0.

2. Please use the attached script to replace the one in
C:\Freescale\CW4NET_v2020.06\CW_ARMv8\ARMv8\gdb_extensions\flash\cwflash.py.
Probably you need to modify this script according to your requirement. For example, you use other connection type, the default is CodeWarrior TAP with USB connection.

3. Please put images files in
C:\Freescale\CW4NET_v2020.06\CW_ARMv8\ARMv8\gdb\bin.

4. Open gdb console in
C:\Freescale\CW4NET_v2020.06\CW_ARMv8\ARMv8\gdb\bin\aarch64-fsl-gdb.exe,
please execute the following commands to do flash programming.

source ../../gdb_extensions/flash/cwflash.py
fl_unprotect 0x0 0x4000000
fl_write 0x0 firmware_<platform>_uboot_qspiboot.img  --erase

0 Kudos