Hi,
Can anyone tell me how to attach to a LS1046A-based custom board which is in an error state? We are trying to debug a PBL error so we want to check some status registers while the board is in this error state i.e. DCFG_CCSR_RSTRQPBLSR. We are using GDB command line to attach to our target. Is there any way to attach without initializing the board?
(gdb) cw-launch -c C:/Freescale/CW4NET_v2020.06/CW_ARMv8/Config/boards/LS1046A_FRWY.tcc -p cwtap -gc :ccs:LS1046A
Configuring the debug probe
Connecting to LS1046A
connected successfully
Halt system
Execute target initialization...
Memory access failed.
//
Additional error details:
[Failed to write memory at address 0x2016002c on core CortexA72#0.
Core CortexA72#0 not found on the JTAG chain. Please verify that the Reset Configuration Word is correct, or enable RCW Override in the initialization file.]
Additional info: While our board is in this error state, we are successful in reading the RCW from the target using TAP under the QCVS interface of CodeWarrior (by pressing the GUI button circled in the attached screenshot). A presumption on my part, is that the GUI button is going off and reading the DCFG_RCWSRn registers and reporting the results back as successful. Another presumption of mine is that if this is true, there must be a way to access other registers too. All of my attempts to attach to the target in this state result in the above error (either through CodeWarrior debug interface or through gdb command line above), whereas there is no error reading the RCW through the QCVS interface per the attached screenshot.
Solved! Go to Solution.
Our issue was an invalid PBI command causing the QSPI device reads to loop repeatedly, preventing our board from coming up. Beware the reserved register bits. We had QuadSPI_MCR bit 11 cleared by accident, which I believe was causing the issue. We are now able to connect to our board using cwtap without running the initialization script!
Our issue was an invalid PBI command causing the QSPI device reads to loop repeatedly, preventing our board from coming up. Beware the reserved register bits. We had QuadSPI_MCR bit 11 cleared by accident, which I believe was causing the issue. We are now able to connect to our board using cwtap without running the initialization script!