Summary

category version
OS macOS Sierra
JAVA JRE version 9
GNU ARM ToolChain v5.4 2016q2
GNU ARM Eclipse Plugin v4.3.2
OpenOCD v0.10.0

Setting Firmware Dev' Enviroments

JAVA JDK(JRE) version 9

Download Link

Eclipse IDE for C/C++ Developer version Oxygen

Download Link

Set Eclipse Plugin (latest version)

  1. Excute Eclipse
  2. Help -> Install New Software -> Add

    or

  3. Excute Eclipse

  4. Help -> Eclipse Marketplace
  5. Find->gnu arm
  6. Install GNU ARM Eclipse

GNU ARM GCC version v5.4 2016q2

  $ ${HOME}/opt/gcc-arm-none-eabi-6-2017-q1-update/bin/arm-none-eabi-gcc --version
  1. Open Eclipse and click Preferences
  2. C/C++ -> Build -> Global Tools Paths
  3. Set Toolchain folder
  4. Click Apply

OpenOCD version 0.10.0

Launching Configuration

  1. Open Eclipse and click Preferences
  2. Run/Debug -> Launching
  3. Check Always launch the previously launched application in Launch Operation

Import Project

  1. Download code https://github.com/oroca/oroca_boy2
  2. Open Eclipse
  3. File -> Import -> Existing Projects into Workspace
  4. Select orocaboy2

Project Configuration

  1. right click project -> Properties
  2. Resource -> Check other : UTF-8 in Text file encoding
  3. C/C++ Build -> Behavior -> Check Enable parallel build
  4. C/C++ Build -> Tools Paths -> Add Toolchain folder
  5. C/C++ Build -> Settings -> Warnings -> Check Enable all common warnings
  6. C/C++ Build -> Settings -> Cross ARM GNU C++ Linker -> Miscellaneous -> Check Use newlib-nano(--specs=nano.specs)
  7. C/C++ Build -> Settings -> Cross ARM GNU C++ Linker -> Miscellaneous -> Add Other linker flags (--specs=rdimon.specs -Wl,--start-group -lgcc -lc -lc -lm -lrdimon -Wl,--end-group)

Excute Debug orocaboy2_boot using OpenOCD

Debug Configuration

  1. right click project -> Debug As -> Debug Configurations..
  2. Select GDB OpenOCD Debugging
  3. add elf file(Debug/orocaboy2_boot.elf) in Main
  4. add Config options(-f orocaboy2_openocd.cfg -c) in Debugger
  5. add Initialization Commands(monitor init monitor flash info 0 monitor flash probe 0 monitor flash protect 0 0 127 off monitor flash info 0) in Startup
  6. Check Shared file and Debug, Run icon in Common

Debug

  1. Select orocaboy2_boot
  2. Click Bug icon

Run orocaboy2_app

Update loader file (Only for MAC)

  1. Make loader file
  $ cd ~/{$orocaboy2_loader's PATH}/build/mac
  $ make
  1. Copy and paste it to orocaboy2_app/tools/orocaboy2_loader/mac

Run

  1. Select orocaboy2_app
  2. Right click and click Build Project
  3. Run -> External Tools -> orocaboy2_loader_mac

results matching ""

    No results matching ""