AnsweredAssumed Answered

ls1043ardb flash programing failed by use codewarrior

Question asked by lin cheng on Apr 12, 2018
Latest reply on Apr 18, 2018 by Yiping Wang

Hi,

   I was test ls1043ardb flash programing use codewarrior, i ref the chapter  "7.1 Configuring flash programmer " from
"ARMv8_Targeting_Manual.pdf" . in cwflash.py, i set BOARD_TYPE = "RDB", FLASH_TYPE = "nor",SOC_NAME = "LS1043A",PROBE_CONNECTION = "". then i launch  aarch64-fsl-gdb.exe ,and then do cmd " source ../../gdb_extensions/flash/cwflash.py ". but somethings is wrong, the log likes below.it says "[Failed to read memory from address 0x1ee00c8 on core SAP#0.GTA: error reading memory]". Do anyone know what is wrong with it ?

 

GNU gdb (GDB) 7.11.1.0.41d8236-b170906 (NXP Semiconductors)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=mingw32 --target=aarch64-fsl-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb)
(gdb) source ../../
CodeWarrior_ARMv8_Release_Notes.pdf License/ gdb_extensions/
CodeWarrior_Examples/ Welcome.txt gta/
Help/ gdb/ sa_ls/
(gdb) source ../../gdb_extensions/
ccs_log/ flash/ mmu/ target/
cw/ gdb_wrapper/ register_cw_extensions.py
diagnostics/ i2c/ registers/
elfutils/ kernel_awareness/ session_launcher/
(gdb) source ../../gdb_extensions/flash/
__init__.py __init__.pyc config.py config.pyc cwflash.py gdbcommands/ scripts/
(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 LS1043A 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_v2018.01\cw_armv8\armv8\gdb_extensions\flash\scripts/../../../../Config/boards/LS1043A_RDB_init.py
ccs:Core not responding
Python Exception <class 'gdb.error'> Protocol error with Rcmd:
ccs:Core not responding
Core not responding
Traceback (most recent call last):
File "../../gdb_extensions/flash/cwflash.py", line 111, in <module>
fp_initialization()
File "../../gdb_extensions/flash/cwflash.py", line 109, in fp_initialization
start_fp_services(argument)
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\i2c\gdbcommands/../../flash\scripts\services.py", line 151, in start_fp_services
return instance.invoke(argument, False)
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\i2c\gdbcommands/../../flash\scripts\services.py", line 108, in invoke
ret = self.start_service(argument)
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\i2c\gdbcommands/../../flash\scripts\services.py", line 122, in start_service
ret = start(args)
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\i2c\gdbcommands/../../flash\scripts\flash_init.py", line 294, in start
if internal_start(args) is False:
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\i2c\gdbcommands/../../flash\scripts\flash_init.py", line 67, in internal_start
if internal_initialize_target(args) is False:
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\i2c\gdbcommands/../../flash\scripts\flash_init.py", line 269, in internal_initialize_target
DbgInit.run_init_file()
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\flash\scripts/../../../../Config/boards/LS1043A_RDB_init.py", line 459, in run_init_file
Reset()
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\flash\scripts/../../../../Config/boards/LS1043A_RDB_init.py", line 158, in Reset
HWRcwValidation(target_access, DCFG_BASE_ADDRESS).check_for_pbl_error()
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\gdb_wrapper\wrapper_gdbcommands/../../cw\dbg\rcw.py", line 378, in check_for_pbl_error
rstrqsr_address, 4, "physical", 1)).to_array(4, swap_needed)[0].to_int()
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\gdb_wrapper\wrapper_gdbcommands/../../cw\dbg\mem.py", line 81, in read
buf = self.ta.channel.cmd_exec(mem_command).strip()
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\gdb_wrapper\wrapper_gdbcommands/../../cw\dbg\channel.py", line 68, in cmd_exec
self._raise_error_info()
File "c:\freescale\cw4net_v2018.01\cw_armv8\armv8\gdb_extensions\gdb_wrapper\wrapper_gdbcommands/../../cw\dbg\channel.py", line 125, in _raise_error_info
raise CWException(err)
cw.dbg.exceptions.CWException: Memory access failed.
//
Additional error details:
[Failed to read memory from address 0x1ee00c8 on core SAP#0.
GTA: error reading memory]

(gdb)

Outcomes