8000 GitHub - tdeb-embeans/LPC1768: Developed using GNU ARM Eclipse OpenOCD
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tdeb-embeans/LPC1768

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

LPC1768

This work was developed under linux operating system using GNU ARM Eclipse OpenOCD. ##Tools:

##Configure for eclipse

  1. Install GNU ARM Eclipse plug-ins from the following URL http://gnuarmeclipse.sourceforge.net/updates
  2. Restart eclipse then create new Empty Project using Cross ARM GCC toolchains.
  3. Goto project->properties
  • Tool Settings
    • Target Processor:

      • cortex-m3
      • -mthumb
      • Toolchain default
    • Optimization: -Os

      • Message length
      • 'char' is signed
      • Function sections
      • Data sections
    • Cross ARM C Compiler's Options

      -I"/path/to/workspace/HelloLPC1768/include" -std=gnu99
      
    • Cross ARM C Linker's Options

      -T "/path/to/workspace/HelloLPC1768/ldscripts/LPC17xx.ld" -Xlinker --gc-sections -Wl,-Map,"HelloLPC1768.map"
      
    • Cross ARM GNU Create Flash Image

      -O ihex "HelloLPC1768.elf"
      
  • Toolchains
    • Choose architecture to 32 bits
    • Set path to /path/to/gcc-arm-none-eabi-5_4-2016q2/bin
    • Set prefix as arm-none-eabi-
    • In addition, this can be set to associate to the current workspace.
  1. Configure run method (J-Link)
  • Goto Run->Run Configurations..
  • Add new configuration in C/C++ Application
  • In the Main tab set C/C++ Application to exec. This make the eclipse to execute the exec script which is included in each project. Note the script is used to write the image using the openocd. It is somehow needs to change the name of the binary file to match the compiled one.
  1. Configure debug method (J-Link)
  • Goto Run->Debug Configurations..
  • Add new configuration in GDB OpenOCD Debugging
  • In the Main tab set C/C++ Application to the compiled executable file.
  • In the Debugger tab set Config Options to -f interface/jlink.cfg -f target/lpc17xx.cfg.
  • Before debugging, the target must be halted first. I do it manually using the command line.

About

Developed using GNU ARM Eclipse OpenOCD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.8%
  • Makefile 2.1%
  • Shell 0.1%
0