Magnus Lundin wrote: > Hi > > The following patch is a first step towards support for sevaral AP in > one dap. > > - Adds a apsel variable, corresponding to the corresponding field in the > DP SELECT register, to the swjdap structure. > - adds a function swjdp_apselect(swjdp_common_t *swjdp,u8 apsel) to set > this variable. > - adds two cortex_m3 interactive commands > cortex_m3 dap #n Shows the contents of ROM/Debug base register > and AP ID Register > cortex_m3 apsel #n Configures to use AP #n in subsequent memory > accesses. > > This should be a possible starting point to explore other debug > configurations that the Cortex_M3 > > Tested on STM32 with no problems found. I dont have any A8 hardware.
I tried to use the commands above with OMAP3 Cortex A8. Two questions: - OMAP3 has (at least) two TAPs > scan_chain TapName | Enabled | IdCode Expected IrLen IrCap IrMask Instr ---|--------------------|---------|------------|------------|------|------|------|--------- 0 | omap3.cpu | Y | 0x00000000 | 0x0b6d602f | 0x04 | 0x01 | 0x00 | 0x0f 1 | omap3.jrc | Y | 0x0b7ae02f | 0x0b7ae02f | 0x06 | 0x01 | 0x0f | 0x3f while 'omap3.cpu' is "Cortex A8" where I think above cortex_m3 commands should work with. How do I tell these commands which TAP to deal with? I.e. how to select which TAP the DAP and AP commands to work with? - OpenOCD revision 1462 with the patch from this mail: -- cut -- > cortex_m3 dap 0 invalid command name "cortex_m3_dap" called at file "command.c", line 456 called at file "embedded:startup.tcl", line 89 called at file "embedded:startup.tcl", line 93 > cortex_m3 dap 1 invalid command name "cortex_m3_dap" called at file "command.c", line 456 called at file "embedded:startup.tcl", line 89 called at file "embedded:startup.tcl", line 93 > cortex_m3 apsel 0 invalid command name "cortex_m3_apsel" called at file "command.c", line 456 called at file "embedded:startup.tcl", line 89 called at file "embedded:startup.tcl", line 93 > cortex_m3 apsel 1 invalid command name "cortex_m3_apsel" called at file "command.c", line 456 called at file "embedded:startup.tcl", line 89 called at file "embedded:startup.tcl", line 93 > -- cut -- Any hint? Many thanks and best regards Dirk _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development