LS1043ARDB use Codewarrior download u-boot some question

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

LS1043ARDB use Codewarrior download u-boot some question

Jump to solution
1,906 Views
zhoujianyun19
Contributor III

Hi:

    LS1043ARDB development board  have  MK22FX512VLH12  DEBUGGER .I want to use MK22FX512VLH12  DEBUGGER download u-boot to NORFLASH or NANDFLASH. May I ask if can do this?

 

    I'm try use MK22FX512VLH12  DEBUGGER download u-boot to NORFLASH .But my compute can't connect LS1043ARDB development board.The following error :

 

(gdb) source ../../gdb_extensions/flash/cwflash.py
ccs:CC config string is invalid
Starting flash programmer services...
Starting local server...
Successfully started gdb server 127.0.0.1:45005.
Set gdb remote timeout to 7200
Connecting to target...
Using LS1043A SoC
Using CWTAP connected to local usb port.
Using jtag speed 6000
Connecting to probe...
GTA: target connection error.
connection failed
Traceback (most recent call last):
File "../../gdb_extensions/flash/cwflash.py", line 89, in <module>
fp_initialization()
File "../../gdb_extensions/flash/cwflash.py", line 87, in fp_initialization
start_fp_services(argument)
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\services.py", line 128, in start_fp_services
return instance.invoke(argument, False)
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\services.py", line 85, in invoke
ret = self.start_service(argument)
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\services.py", line 99, in start_service
ret = start(args)
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\flash_init.py", line 242, in start
if internal_start(args) is False:
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\flash_init.py", line 47, in internal_start
if internal_connect_to_target(args) is False:
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\flash_init.py", line 190, in internal_connect_to_target
gdb_execute('monitor ctx connect')
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\utils.py", line 72, in gdb_execute
raise gdb.GdbError("Error: " + str(exc))
gdb.GdbError: Error: Protocol error with Rcmd

 

My cwflash.py file please refer to attachment.

 

BR

zhoujianyun

Original Attachment has been moved to: cwflash.py.zip

Labels (1)
Tags (1)
0 Kudos
1 Solution
1,417 Views
addiyi
NXP Employee
NXP Employee

Perfect. Connection to board works fine. Now, about CW connection please check:

- you start CW using fsl_eclipse.bat;

- you update lately CW;

- you use Check for update or Install New Software when updating;

Adrian

View solution in original post

0 Kudos
12 Replies
1,417 Views
zhoujianyun19
Contributor III

HI:

    I update my CW to latest version,but my compute still can't connect LS1043ARDB development board.

zhoujianyun

0 Kudos
1,417 Views
zhoujianyun19
Contributor III

HI :

My ccs console output:

(bin) 1 % config cc cmsisdap
Identified CMSIS-DAP SERNUM: 20010203191AC2F8E4E61D01
Firmware version: 0203
0: CMSIS-DAP (cmsisdap) CC software ver. {0.3}
(bin) 2 % show cc
0: CMSIS-DAP (cmsisdap) CC software ver. {0.3}
(bin) 3 % ccs::config_chain {ls1043a cmsisdap}
(bin) 4 % display ccs::get_config_chain
Chain Position 0: LS1043A
Chain Position 1: CoreSight ATB Funnel
Chain Position 2: CoreSight ATB Funnel
Chain Position 3: CoreSight TMC
Chain Position 4: CoreSight TMC
Chain Position 5: CoreSight ATB Funnel
Chain Position 6: CoreSight STM
Chain Position 7: CoreSight TMC
Chain Position 8: CoreSight ATB Funnel
Chain Position 9: CoreSight ATB Funnel
Chain Position 10: CoreSight TMC
Chain Position 11: CoreSight TMC
Chain Position 12: CoreSight TMC
Chain Position 13: CoreSight CTI
Chain Position 14: CoreSight CTI
Chain Position 15: CoreSight CTI
Chain Position 16: Cortex-A53
Chain Position 17: CoreSight CTI
Chain Position 18: Cortex-A53 PMU
Chain Position 19: Cortex-A53 ETM
Chain Position 20: Cortex-A53
Chain Position 21: CoreSight CTI
Chain Position 22: Cortex-A53 PMU
Chain Position 23: Cortex-A53 ETM
Chain Position 24: Cortex-A53
Chain Position 25: CoreSight CTI
Chain Position 26: Cortex-A53 PMU
Chain Position 27: Cortex-A53 ETM
Chain Position 28: Cortex-A53
Chain Position 29: CoreSight CTI
Chain Position 30: Cortex-A53 PMU
Chain Position 31: Cortex-A53 ETM
Chain Position 32: CMSISDAP
(bin) 5 % ccs::all_run_mode
CortexA53: Execute Mode
CortexA53: Reset Mode
CortexA53: Reset Mode
CortexA53: Reset Mode
(bin) 6 %

zhoujianyun

0 Kudos
1,418 Views
addiyi
NXP Employee
NXP Employee

Perfect. Connection to board works fine. Now, about CW connection please check:

- you start CW using fsl_eclipse.bat;

- you update lately CW;

- you use Check for update or Install New Software when updating;

Adrian

0 Kudos
1,417 Views
addiyi
NXP Employee
NXP Employee

Please try to connect to the board using ccs. In ccs console do the followings:

config cc cmsisdap

show cc

ccs::config_chain {ls1043a cmsisdap}

display ccs::get_config_chain

ccs::all_run_mode

Please provide the output. ccs can be found in  CW4NET_v2016.01\Common\CCS\bin\

Adrian

0 Kudos
1,417 Views
zhoujianyun19
Contributor III

HI:

My u-boot boot information.

U-Boot SPL 2016.012.0+ga9b437f (Mar 15 2017 - 16:18:59)
Initializing DDR....
Trying to boot from MMC


U-Boot 2016.012.0+ga9b437f (Mar 15 2017 - 16:18:59 +0800)

SoC: unknown (0x87920410)
Clock Configuration:
CPU0(A53):1600 MHz CPU1(A53):1600 MHz CPU2(A53):1600 MHz
CPU3(A53):1600 MHz
Bus: 400 MHz DDR: 1600 MT/s FMAN: 500 MHz
Reset Configuration Word (RCW):
00000000: 08100010 0a000000 00000000 00000000
00000010: 14550002 80004012 60040000 c1002000
00000020: 00000000 00000000 00000000 00038800
00000030: 00000000 00001100 00000096 00000001
I2C: ready
Model: LS1043A RDB Board
Board: LS1043ARDB, boot from SD
CPLD: V1.5
PCBA: V3.0
SERDES Reference Clocks:
SD1_CLK1 = 156.25MHZ, SD1_CLK2 = 100.00MHZ
DRAM: Detected UDIMM Fixed DDR on board
2 GiB (DDR4, 32-bit, CL=11, ECC off)
SEC0: RNG instantiated
PPA Firmware: Version 0.2
Using SERDES1 Protocol: 5205 (0x1455)
Flash: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: disabled
PCIe2: Root Complex no link, regs @ 0x3500000
PCIe3: Root Complex no link, regs @ 0x3600000
In: serial
Out: serial
Err: serial
SCSI: Error: SCSI Controller(s) 1B4B:9170 not found
Net:
MMC read: dev # 0, block # 2080, count 128 ...
Fman1: Uploading microcode version 108.4.5
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3 [PRIME], FM1@DTSEC4, FM1@DTSEC5, FM1@DTSEC6, FM1@TGEC1
Hit any key to stop autoboot: 0

zhoujianyun

0 Kudos
1,417 Views
zhoujianyun19
Contributor III

Dear Adrian:

    Thanks for you answer my question.

    I'm never modified RCW file.My RCW configure as below:

#PBL preamble and RCW header
aa55aa55 01ee0100
# RCW
08100010 0a000000 00000000 00000000
14550002 80004012 60040000 c1002000
00000000 00000000 00000000 00038800
00000000 00001100 00000096 00000001

I think RCW is compiled into u-boot.bin.Don't need to write RCW to LS1043ARDB development board.

zhoujianyun

0 Kudos
1,417 Views
addiyi
NXP Employee
NXP Employee

Ok, but your board is booting fine? Can you see uboot console?

Adrian

0 Kudos
1,417 Views
addiyi
NXP Employee
NXP Employee

The error indicate RCW is missing/incorrect on your target board. Could you confirm RCW is missing on your board?

Adrian

0 Kudos
1,417 Views
zhoujianyun19
Contributor III

HI 

    I will set PROBE_CONNECTION = "cmsisdap"  and  disconnect the CWTAP connection.And also set SW3[6] = 0.But still have error,the ccs verbose log:

(gdb) source ../../gdb_extensions/flash/cwflash.py
ccs:USB not configured
Starting flash programmer services...
Starting local server...
Successfully started gdb server 127.0.0.1:45005.
Set gdb remote timeout to 7200
Connecting to target...
Using LS1043A SoC
Using CMSIS-DAP
Using jtag speed 16000
Connecting to probe...
GTA: target access error.
connection failed
Traceback (most recent call last):
File "../../gdb_extensions/flash/cwflash.py", line 89, in <module>
fp_initialization()
File "../../gdb_extensions/flash/cwflash.py", line 87, in fp_initialization
start_fp_services(argument)
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\services.py", line 128, in start_fp_services
return instance.invoke(argument, False)
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\services.py", line 85, in invoke
ret = self.start_service(argument)
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\services.py", line 99, in start_service
ret = start(args)
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\flash_init.py", line 242, in start
if internal_start(args) is False:
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\flash_init.py", line 47, in internal_start
if internal_connect_to_target(args) is False:
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\flash_init.py", line 190, in internal_connect_to_target
gdb_execute('monitor ctx connect')
File "D:\Freescale\CW4NET_v2016.01\CW_ARMv8\ARMv8\gdb_extensions\flash/../flash\scripts\utils.py", line 72, in gdb_execute
raise gdb.GdbError("Error: " + str(exc))
gdb.GdbError: Error: Protocol error with Rcmd

zhoujianyun

0 Kudos
1,417 Views
addiyi
NXP Employee
NXP Employee

K22 can be used for downloading the code and for debugging, but note that is very slow and other limitation is that it doesn't support RCW override.

In your cwflash.py you should set PROBE_CONNECTION = "cmsisdap" for connection via K22.

Adrian

0 Kudos
1,417 Views
zhoujianyun19
Contributor III

HI Adrian:

    I modify cwflash.py  set PROBE_CONNECTION = "cmsisdap[:COM10]" .But still can not connect .

    The error code is the same as above.

zhoujianyun

0 Kudos
1,416 Views
addiyi
NXP Employee
NXP Employee

Did you try also without serial number? Just PROBE_CONNECTION = "cmsisdap"? If doesn't work please provide ccs verbose log.

Also, make sure: 

When using CWTAP set SW3[6] = 1.
When using CMSIS-DAP set SW3[6] = 0 and make sure you disconnect the CWTAP connection.

Adrian

0 Kudos