Hello Yiping,
We have tried the procedure you have given us, to get our custom board to boot. CWTAP is failing to initialize the target. These are the following messages
GNU gdb (GDB) 7.11.1.0.3f0b3f2-b180725 (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) source ../../gdb_extensions/flash/cwflash.py
Starting flash programmer services...
Starting local server...
Successfully started gdb server 127.0.0.1:45001.
Set gdb remote timeout to 7200
Connecting to target...
Using LS1012A SoC
Using CWTAP 00:04:9f:04:cc:34
Using jtag speed 6000
Connecting to probe...
connected successfully
Successfully connected to probe
Initializing target...
Running init script c:\freescale\cw4net_v2019.01\cw_armv8\armv8\gdb_extensions\flash\scripts/../../../../Config/boards/LS1012A_FRDM_init.py
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.
Error: fail to initialize target
Closing debugger server...
Error: fail to start flash programming services.
(gdb)
We are pasting "cwflash.py".
###################################################################
######### Parameters
###################################################################
# Board type (Supported values: "QDS", "RDB").
BOARD_TYPE = "FRDM"
# Flash types (Supported values: "nor", "nand", "qspi", "sd", "mmc").
FLASH_TYPE = "qspi"
# Connection probe. Possible values:
# PROBE_CONNECTION = "" - use local CWTAP through USB.
# PROBE_CONNECTION = "<serial_number>" - use local CWTAP USB with specified serial number. Ex: "12:34:56:78:9a:bc"
# PROBE_CONNECTION = "<IP>|<host_name>" - use remote CWTAP
# PROBE_CONNECTION = "cmsisdap[:<serial_number>]" - use CMSIS-DAP with or without serial number
#PROBE_CONNECTION = "cmsisdap:COM10"
PROBE_CONNECTION = "00:04:9f:04:cc:34"
# Current SoC name.
SOC_NAME = "LS1012A"
# JTAG speed.
# For CMSIS-DAP please lower the JTAG speed to 6000.
JTAG_SPEED = 6000
# Address:port (IP/host name:port) where CCS is located.
# If empty, it will use local connection.
# Ex: 127.0.0.1:41475
CCS_CONNECTION = ""
# Address:port that will be used by GTA.
# If empty, it will use local connection.
# Ex: 127.0.0.1:45000
GTA_CONNECTION = ""
# Remote target responses timeout (seconds).
GDB_TIMEOUT = 7200
###################################################################
######### Start Flash Programming Services
###################################################################
import sys
import os
#compute gdb_extensions absolute path
FLASH_EXT_INSTALL_DIR = ''.join([os.path.dirname(os.path.realpath(__file__)), '/'])
GDB_EXT_INSTALL_DIR =''.join([FLASH_EXT_INSTALL_DIR, '../'])
#add gdb_extensions to system path
sys.path.insert(0, GDB_EXT_INSTALL_DIR)
from flash.scripts.services import start_fp_services
def fp_initialization():
"""
CodeWarrior services initialization script
"""
gtaip = GTA_CONNECTION
ccsip = CCS_CONNECTION
dev_arg = '-d %s' % FLASH_TYPE
soc_arg = '-s %s' % SOC_NAME
board_arg = '-b %s' % BOARD_TYPE
conn_arg = ''
if PROBE_CONNECTION:
conn_arg = '--probe %s' % PROBE_CONNECTION
# for CCS server to be started on host leave empty
ccsip_arg = ''
if ccsip:
ccsip_arg = '--ccsip %s' % ccsip
gtaip_arg = ''
if gtaip:
gtaip_arg = '--gtaip %s' % gtaip
jtag_speed_arg = '--jtag_speed %d' % JTAG_SPEED
timeout_arg = '--timeout %d' % GDB_TIMEOUT
argument = ' '.join([dev_arg, soc_arg, board_arg, conn_arg, ccsip_arg, \
gtaip_arg, jtag_speed_arg, timeout_arg])
start_fp_services(argument)
fp_initialization()
---------------------------------------------------------------------------------------------------------------------------------------------------------
we have checked USE_SAFE_RCW = False and USE_SAFE_RCW = True in "LS1012A_FRDM_init.py" .
Can you please check and let us know.
Thanks a lot.
Best Regards,
Srikanth Reddy.