## oocd setup # newer builds may require swapping which block is commented here interface jlink adapter_khz 9600 #adapter driver jlink #adapter speed 9600 transport select jtag # same with these adapter_nsrst_assert_width 100 adapter_nsrst_delay 225 #adapter srst delay 225 #adapter srst pulse_width 100 #jtag_ntrst_delay 100 set _CHIPNAME pc302 set _ENDIAN little set _CPUTAPID 0x07b763a9 reset_config trst_and_srst separate srst_gates_jtag trst_push_pull srst_push_pull jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID -ircapture 0x1 -irmask 0x1f set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME # not useful atm #$_TARGETNAME configure -rtos linux flash bank $_CHIPNAME.extflash cfi 0x40000000 0x04000000 1 1 $_TARGETNAME x16_as_x8 init reset halt bp 0x06011004 0x4 hw resume wait_halt 8000 rbp 0x06011004