Loading and Running RTEMS on Lattice Mico32

  • Print

The following instructions assume you have Lattice ispLEVER tools and Lattice Mico32 tools installed on a Windows PC and you have your target connected to the PC using the Lattice JTAG cable.

  1. Configure your target board FPGA using ispVM.
  2. Start two instances of LatticeMico32 System SDK Shell
  3. In first instance of LatticeMico32 System SDK Shell enter command TCP2JTAGVC2
  4. In second instance change directory to b-rtems/lm32-rtems4.10/c/lm32_evr/testsuites/samples/hello and run lm32-elf-gdb and run commands:
file hello.exe  
target remote localhost:1000
load
c

Now there should be output on the console:

*** HELLO WORLD TEST ***
Hello World
*** END OF HELLO WORLD TEST ***