Changes between Version 16 and Version 17 of TBR/BSP/Beagleboard


Ignore:
Timestamp:
Apr 16, 2014, 8:23:04 AM (5 years ago)
Author:
ChrisJohns
Comment:

/* Debugging */

Legend:

Unmodified
Added
Removed
Modified
  • TBR/BSP/Beagleboard

    v16 v17  
    186186
    187187Using the xM and JTAG I cannot get Ben's build to work. The problem is no UART set up because it is not set up by the time JTAG is given control. From reading the TRM and by playing around it seems some code is being loaded off the SD card and that is setting up DRAM plus other things however the UART is not setup. If the SD card is removed the code sits in the ROM code. As a result we need a boot monitor of some form to get things working until supporting initialisation code is added to RTEMS we decide to settle on U-Boot as the initialisation code.
     188= JTAG =
     189
     190
     191I use a Flyswatter2 from Rusty at Tincan Tools (http://www.tincantools.com/JTAG/Flyswatter2.html). You can also buy an adaptor board for the xM that makes connecting simple. The software is OpenOCD (http://openocd.sourceforge.net/). I build from git with a range of unrelated patches for SMP support on the Zynq. The git repo is http://sourceforge.net/p/openocd/code/ci/master/tree/. I use a special prefix by configuring with the --prefix option to configure.
     192
     193To run OpenOCD:
     194
     195  $ cat bbxm.cfg
     196  source [find interface/ftdi/flyswatter2.cfg]
     197  source [find board/ti_beagleboard_xm.cfg] 
     198  init
     199  $ ~/development/openocd/git/bin/openocd -f bbxm.cfg -c "reset"
     200  Open On-Chip Debugger 0.8.0-dev-00014-gd3d0bf2-dirty (2013-07-21-15:32)
     201  Licensed under GNU GPL v2
     202  For bug reports, read
     203          http://openocd.sourceforge.net/doc/doxygen/bugs.html
     204  Info : only one transport option; autoselect 'jtag'
     205  adapter speed: 10 kHz
     206  Warn : dm37x.dsp: huge IR length 38
     207  trst_only separate trst_push_pull
     208  Info : clock speed 10 kHz
     209  Info : TAP dm37x.jrc does not have IDCODE
     210  Warn : JTAG tap: dm37x.jrc       UNEXPECTED: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0)
     211  Error: JTAG tap: dm37x.jrc  expected 1 of 3: 0x2b89102f (mfg: 0x017, part: 0xb891, ver: 0x2)
     212  Error: JTAG tap: dm37x.jrc  expected 2 of 3: 0x1b89102f (mfg: 0x017, part: 0xb891, ver: 0x1)
     213  Error: JTAG tap: dm37x.jrc  expected 3 of 3: 0x0b89102f (mfg: 0x017, part: 0xb891, ver: 0x0)
     214  Error: Trying to use configured scan chain anyway...
     215  Warn : Bypassing JTAG setup events due to errors
     216  adapter speed: 1000 kHz
     217  Warn : dm37x.cpu: ran after reset and before halt ...
     218  dm37x.cpu: target state: halted
     219  dm37x.cpu: target halted in Thumb state due to debug-request, current mode: Supervisor
     220  dm37x.cpu: cpsr: 0x000001f3 pc: 0x00015dec
     221  dm37x.cpu: MMU: disabled, D-Cache: disabled, I-Cache: enabled
    188222= Building U-Boot =
    189223