Hi all, did anyone succeeded on attaching to JTAG port of Calypso ?
I was looking at the docs here : http://bb.osmocom.org/trac/wiki/MotorolaC123, especially this : http://bb.osmocom.org/trac/attachment/wiki/MotorolaC123/compal_testpads.png, so I was wondering if someone has used JTAG, specifficaly with OpenOCD or UrJTAG ?
I am planning to do some work on NuttX port, and I think that JTAG debugging would be very convenient for this kind of low level task.
Also, I think that JTAG RAM flashing should be faster than current Osmocon RS232 method. Did anyone tried this and can osmocon be instructed that the code is already present in RAM, i.e. JTAG uploaded ?
Best regards, Drasko
On Sat, Jun 04, 2011 at 01:50:46AM +0200, Drasko DRASKOVIC wrote:
did anyone succeeded on attaching to JTAG port of Calypso ?
I was looking at the docs here : http://bb.osmocom.org/trac/wiki/MotorolaC123, especially this : http://bb.osmocom.org/trac/attachment/wiki/MotorolaC123/compal_testpads.png, so I was wondering if someone has used JTAG, specifficaly with OpenOCD or UrJTAG ?
I think I remember somebody had experimented with OpenOCD, and there was some problem related to the initial reset of the CPU. Something regarding the PLL setup, perhaps? But apart from that, it seemed to be working.
(of course only on those phones that expose JTAG, which specifically is _not_ the C123 we have seen, but only C115, C117 and C155).
I don't remember who did that, though. Let's hope they still read this list and respond separately.
We didn't really make use of it as most people have C123, and also we have not really needed it during our development of the existing code.
Regards, Harald
On Wed, Jun 8, 2011 at 8:48 AM, Harald Welte laforge@gnumonks.org wrote:
On Sat, Jun 04, 2011 at 01:50:46AM +0200, Drasko DRASKOVIC wrote:
did anyone succeeded on attaching to JTAG port of Calypso ?
I was looking at the docs here : http://bb.osmocom.org/trac/wiki/MotorolaC123, especially this : http://bb.osmocom.org/trac/attachment/wiki/MotorolaC123/compal_testpads.png, so I was wondering if someone has used JTAG, specifficaly with OpenOCD or UrJTAG ?
I think I remember somebody had experimented with OpenOCD, and there was some problem related to the initial reset of the CPU. Something regarding the PLL setup, perhaps? But apart from that, it seemed to be working.
Hi Harald,
Good news. Normally PLL and RAM (and all other) configuration can be done by OpenOCD scripts just after reset (during reset-init procedure of OpenOCD). Since there is bootcode already implemented, it would should be a matter of rewriting this C/ASM initialization into OpenOCD Jim TCL start-up scripts (but I guess it is just a few reg writes...)
(of course only on those phones that expose JTAG, which specifically is _not_ the C123 we have seen,
Hmm... I was little bit confused so I needed clarification. When you say that C123 do not expose JTAG, what are then TDI, TDO and TMS pins here : http://bb.osmocom.org/trac/attachment/wiki/MotorolaC123/compal_testpads.png ? I thought that they are standard JTAG signals and that we can connect JTAG probe connector directly there. After that alls should work with OpenOCD because it have great support for ARM7TDMI.
but only C115, C117 and C155).
I tried to look for a schematic for C115/C117, but link on Osmocom site seems to be dead : http://files.shrak-mobile.com/schem/motorola/C115_schem.rar I'll search on the net later this evening...
I don't remember who did that, though. Let's hope they still read this list and respond separately.
We didn't really make use of it as most people have C123, and also we have not really needed it during our development of the existing code.
Well, it is true that for PS development it is not essential. However, I think that for the platform development - RTOS, BSP/HAL, drivers, etc... it can be really handy. It is powerful tool, and it would be a shame not to use it if it is only a matter of soldering 5 pins... I am primarily looking at this for a OS porting/debugging purposes.
BR, Drasko
Hi Drasko,
On Wed, Jun 08, 2011 at 10:55:03AM +0200, Drasko DRASKOVIC wrote:
(of course only on those phones that expose JTAG, which specifically is _not_ the C123 we have seen,
Hmm... I was little bit confused so I needed clarification. When you say that C123 do not expose JTAG, what are then TDI, TDO and TMS pins here : http://bb.osmocom.org/trac/attachment/wiki/MotorolaC123/compal_testpads.png ? I thought that they are standard JTAG signals and that we can connect JTAG probe connector directly there. After that alls should work with OpenOCD because it have great support for ARM7TDMI.
Sorry, which part of the paragraph below the picture is unclear to you?
============== On the C123 the following pads are usable * TP27 -- DLPWR (download power on), connects to Iota:RPWON * TP14 -- RxD Modem * TP13 -- TxD Modem * TP9 -- CTS Modem * TP39 -- GND
On most phones other pads are grounded and not usable (like in the scan above). Known exceptions
* C115 and C117 have all test pads * C155 has JTAG but not IRDA UART test pads ==============
Regards, Harald
baseband-devel@lists.osmocom.org