source: rtems/c/src/lib/libbsp/arm/beagle/README.JTAG @ 0afac6a

4.115
Last change on this file since 0afac6a was 53dd6d61, checked in by Ben Gras <beng@…>, on Nov 3, 2014 at 6:53:40 PM

BSP for several Beagle products

Specifically the beagleboard, beagleboard xM, beaglebone, beaglebone black.

More info on these targets: http://www.beagleboard.org/

This commit forms a basic BSP by combining Claas's work with

. new clock and irq code and definitions for

beagle targets (beagleboard and beaglebones), mostly
reused from the Minix codebase, thus making
irqs, ticks and non-polled console mode work too

. new timer code for ns timing with high timer resolution,

24MHz on the AM335X and 13MHz on the DM37XX

. select the console uart based on target at configure time
. removing all the lpc32xx-specific macros and code and

other unused code and definitions that the beagle bsp
was based on

. re-using some standard functions instead of lpc32xx versions
. fixed some whitespace problem in preinstall.am
. fixed some compile warnings
. configure MMU: set 1MB sections directly in the TTBR,

just to show the difference between cacheable RAM and
non-cacheable device memory and invalid ranges; this lets us
turn on caches and not rely on boot loader MMU configuration.
Verified to work when MMU is initially either on or off when
RTEMS gets control.

Thanks for testing, commentary, improvements and fixes to Chris Johns,
Brandon Matthews, Matt Carberry, Romain Bornet, AZ technology and others.

Signed-Off-By: Ben Gras <beng@…>

  • Property mode set to 100644
File size: 855 bytes
Line 
1To run RTEMS from scratch (without any other bootcode) on the beagles,
2you can comfortably load the executables over JTAG using gdb. This is
3necessarily target-specific however.
4
51. BBXM
6
7  - For access to JTAG using openocd, see simscripts/bbxm.cfg.
8  - openocd then offers access to gdb using simscripts/gdbinit.bbxm.
9  - start openocd using bbxm.cfg
10  - copy your .exe to a new dir and that gdbinit file as .gdbinit in the same dir
11  - go there and start gdb:
12    $ arm-rtems4.11-gdb hello.exe
13  - gdb will invoke the BBXM hardware initialization in the bbxm.cfg
14    and load the ELF over JTAG. type 'c' (for continue) to run it.
15  - breakpoints, C statement and single-instruction stepping work.
16
172. beaglebone white
18
19This has been tested with openocd and works but not in as much detail as for
20the BBXM yet (i.e. loading an executable from scratch).
Note: See TracBrowser for help on using the repository browser.