rone Setup Instructions - New Spring 2014

The older instructions can be found here.

Install these things

  1. Eclipse IDE
  2. Eclipse CDT (install from within Eclipse)
  3. ARM-Eclipse integration (also install from within Eclipse)
  4. Code Sourcery Lite Cross-complier, Arm EABI

After installing those things

Copy the following files from

<repository location>/robotcode/ronelibs/zz-newprojectfiles/gcclibs
to
<CodeSourcery location>/Sourcery_CodeBench_Lite_for_ARM_EABI/arm-none-eabi/lib/thumb2

Download OpenOCD for JTAG debugging

http://openocd.sourceforge.net/supported-jtag-interfaces/
http://gnuarmeclipse.livius.net/blog/openocd-install/

Set up OpenOCD

Make a new GDB Hardware Debugging configuration
In "Main" tab, select the elf file of the program to debug
Switch to the "Debugger" tab
In the GDB command, select the Sourcery Lite arm-none-eabi-gdb
Check the remote target box
Select "OpenOCD (via pipe)" as the JTAG Device
Copy the following command for the GDB connection string

| openocd -f interface/busblaster.cfg -f target/stellaris.cfg -c "gdb_port pipe; log_output openocd.log" -c "init" -c "reset halt"

Switch to the "Startup" tab
Un-check the "Reset and Delay (seconds)" box
Type the following in the Initialization Commands box

monitor adapter_khz 2000
monitor lm3s.cpu configure -rtos auto

In order to break at main: Check the "Set breakpoint at" checkbox in Runtime Options and type "main"

In order to resume running the program after downloading to the flash: Check the "Resume" checkbox in the Runtime Options section

Notes

Bus Blaster JTAG Debugger: http://dangerousprototypes.com/docs/Bus_Blaster

Makefiles for projects: under construction

You must define the following symbols in your projects:

== driverlib ==
sourcerygxx
PART_LM3S8962 -or- PART_LM3S9B92

== FreeRTOS ==
GCC_ARMCM3

== roneos ==
GCC_ARMCM3
sourcerygxx
PART_LM3S8962 -or- PART_LM3S9B92
RONE_V6 -or- RONE_V9

== application ==
-nothing-



==== Project settings ====
includes:
"${workspace_loc:/roneLib/inc}"
"${workspace_loc:/roneos/inc}"
"${workspace_loc:/FreeRTOS/inc}"
"${workspace_loc:/driverlib}"

libraries:
roneLib
roneos
FreeRTOS
driverlib
gcc

library search path:
"${workspace_loc:/roneLib/bin}"
"${workspace_loc:/roneos/bin}"
"${workspace_loc:/FreeRTOS/bin}"
"${workspace_loc:/driverlib/bin}"

misc:
 -Werror=implicit-function-declaration -Wno-unused


==== debugger Settings ====