Hi, Varun,
This is an update to your question/request:
go to the ccs command line window and run the following command before you run the debug in CW
As you can see below VSPA is not in the jtag chain by default.
Once you do the write_mem commands below the VSPA is added to the jtag chain.
Good luck
bin) 61 % delete all
(bin) 62 % config cc cwtap:fsl042a86
(bin) 63 % ccs::config_chain {la9310 dap}
(bin) 64 % display ccs::get_config_chain
Chain Position 0: LA9310
Chain Position 1: Cortex-M4
Chain Position 2: CoreSight CTI
Chain Position 3: CoreSight CTI
Chain Position 4: CoreSight CTI
Chain Position 5: DAP
(bin) 65 % ccs::write_mem 0 0x41e60104 4 0 0x01000000
(bin) 66 % ccs::write_mem 0 0x41e60114 4 0 0x01000000
(bin) 67 % display ccs::read_mem 0 0x41e6000c 4 0 1
+0 +4 +8 +C
[0x41E6000C] 01000000
(bin) 68 %
(bin) 68 % ccs::config_chain {la9310 dap}
(bin) 69 % display ccs::get_config_chain
Chain Position 0: LA9310
Chain Position 1: Cortex-M4
Chain Position 2: CoreSight CTI
Chain Position 3: CoreSight CTI
Chain Position 4: CoreSight CTI
Chain Position 5: VSPA2 core
Chain Position 6: DAP
Best Regards,
XiangJun Rong