Following error is obtained while trying to initiate flash programming services on LS1046ARDB using code warrior TAP. We tried setting the RESET_REQ_B(SW4) to OFF as suggested in the logs, but it didnt resolve the issu. Attaching the cw_flash.py for reference.
(gdb) source ../../gdb_extensions/flash/cwflash.py
Starting flash programmer services...
Starting local server...
Successfully started gdb server 127.0.0.1:45068.
Set gdb remote timeout to 7200
Connecting to target...
Using LS1046A SoC
Using CWTAP connected to local usb port
Using jtag speed 16000
Connecting to probe...
Successfully connected to probe
Running init script /home/vkchlt0239/Freescale2/CW4NET_v2019.01/CW_ARMv8/ARMv8/gdb_extensions/flash/scripts/../../../../Config/boards/LS1046A_RDB_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.
There is no valid RCW on the target board.
Please configure switch setting SW5[1-8] SW4 as 0100_1111_1 to configure the target board as hard-coded RCW.
After QSPI flash programming, please configure switch SW5[1-8] SW4 as 0010_0010_0 to configure the RCW source as QSPI flash on the target board.
If further assistance is needed, please feel free to let me know.
In addition, please refer to the attached cwflash.py script.