Thursday, November 18, 2010

Nov.18+26 Tutorial Dev Environment Summary

Links for setting up tools needed: 
  • Java SE6
  • Build Environment 
    • cygwin
    • add cygwin/bin location to the path 
    • installing gnuarm set the window registry entry needed for cygwin 1.7 for use with eclipse
  • Eclipse with C-Development Tools (CDT)
  • FORTE
  • 4DIAC-IDE 
Other
  • loop-back device 
    • install check: Device Manager => Network Adaptors => MS Loopback Device
    • needed for virtual network on 1 PC with 4diac/forte
Cross-compiling and debugging for ARM
  • GNUARM includes arm-elf-insight for debugging
    • used: binutils-2.17, gcc-4.1.1-c-c++, newlib-1.14.0, insight-6.5, setup.exe
    • install check: 
      • 1. echo $PATH Your install directory for /gnuarm/bin should be in the path.
      • 2. in a cygwin command window enter arm-elf-insight. The GNU GDB RedHat Source Window should appear.
        • arm-elf-insight GUI will not work if blocked by firewall
    • Cross-compiling in eclipse
      • use arm-elf-g++
    • Debugging with GNU GDB arm-elf-insight forte 
      • open a cygwin command window
      • cd to the directory with the forte executable
        • ex: cd /cygdrive/h/lms/bin/src/forte
      • enter arm-elf-insight forte
      • GUI Source Window opens
        • Run > Connect to Target: (for Segger JLINK)
          • Target: Remote TCP
          • Hostname: localhost
          • Port: 3333
        • View > Console
          • monitor reset
          • monitor halt
        • View > set breakpoints
          • max of 2 breakpoints for lms
          • max of 1 breakpoint when stepping through code
Flashing the LMS
    eCos, Samba, usb Drivers are needed for the following:

No comments:

Post a Comment