my gpio jtag initialize sequence below.
i think go +exit function is incorrect. ??
or interrupt blocked ?
Could you give me go+exit script to run on T32?
// 1. Assert RESET
sleep_ms(10);
// 2. Set the OCMD_ENABLE_ONCE[0xFFFFFFFF]
// 3. Set the OCR[DR] and OCR[WKUP]
// 4. Deassert RESET
sleep_ms(10);
// 5. Verify debug mode via the DEBUG bit in the OnCE status register
//6. External Debug Mode Enable
once_reg_write(bus, "OCMD_EDBCR0", DBCR0_EDM); // set EDBCR0[EDM]
once_reg_write(bus, "OCMD_DBCR0", DBCR0_EDM); // set EDBCR0[EDM]
once_reg_write(bus, "OCMD_DBSR", 0xFFFFFFFF); // clear DBSR
//7. Sram Init
//8. FMPLL init
//9. Load C55 S-Record file(i think file crc error. (???))
//10. c55_config write to sram
// 11.c55_FlashInit()
//11.1 write PC
/* no-op = e_ori 0,0,0 */
cpuscr_data.ir = 0x1800D000;
cpuscr_data.pc = data - 4;
cpuscr_data.ctl = (CPUSCR_CTL_WAITING | CPUSCR_CTL_IRSTAT8);
once_single_step(bus, cpuscr_data);
//11.2 go~~~
once_reg_write(bus, "OCMD_OCR", (OCR_WKUP | OCR_FDB));
once_ir_exec(bus, "OCMD_OSR", OCMD_READ, OCMD_GO, OCMD_LEAVE_DBG);
// 11.3 wait for Debug bit set
OCMD_NOREGSELECT read but not set debug bit so time out!!!