Skip to content

KyleKubik/neoPLC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Core for Nordic Semiconductor nRF5 based boards

Program Nordic Semiconductor nR5 based boards with the Arduino IDE.

TO DO

  1. create new board files for the bootloader
  2. cut some fat from the bootloader
  3. ensure BLE update works with the bootloader (may currently be broken due to being forced to reset the softdevice)
  4. create variants for specific boards, not just the modules
  5. add SOFT_RESET_PIN definition to all variants
  6. configure SOFT_RESET_PIN as a pulldown input and attach a rising interrupt to it for resetting the board (done via initVariant();)

Supported boards

  • nRF52 DK
    • For boards prior to 2016.9 (see sticker), the lastest JLink bootloader is required to upload sketches. To upgrade, press the boot/reset button while powering on the board and copy over the latest bootloader.

Installing

From git (for core development)

  1. Install Git: https://git-scm.com/download
  2. Open the Git-Gui (either type git-gui in the command line or find it in your installed programs)
  3. Select "Help" -> "Show SSH Key" and generate a public key, send the key to kak0032@auburn.edu to be added to the repository
  4. Once your SSH key has been addede, Select "Clone Exisiting Repository"
  • Source Location is: git@gitlab.com:kylekubik/arduino-nRF5.git
  • Target directory is: <SKETCHBOOK>/hardware/deft/nRF5/ , where <SKETCHBOOK> is your Arduino Sketch folder:
  • OS X: ~/Documents/Arduino
  • Linux: ~/Arduino
  • Windows: ~/Documents/Arduino
  1. click Clone

Flashing a SoftDevice

  1. cd <SKETCHBOOK>, where <SKETCHBOOK> is your Arduino Sketch folder:
  • OS X: ~/Documents/Arduino
  • Linux: ~/Arduino
  • Windows: ~/Documents/Arduino
  1. Create the following directories: tools/nRF5FlashSoftDevice/tool/
  2. Download nRF5FlashSoftDevice.jar to <SKETCHBOOK>/tools/nRF5FlashSoftDevice/tool/
  3. Restart the Arduino IDE
  4. Select your nRF board from the Tools -> Board menu
  5. Select a SoftDevice from the Tools -> "SoftDevice: " menu
  6. Select a Programmer (J-Link, ST-Link V2, or CMSIS-DAP) from the Tools -> "Programmer: " menu
  7. Select Tools -> nRF5 Flash SoftDevice
  8. Read license agreement
  9. Click "Accept" to accept license and continue, or "Decline" to decline and abort
  10. If accepted, SoftDevice binary will be flashed to the board

Credits

This core is based on the Arduino-nRF5 Core and licensed under the same GPL License

The following tools are used:

About

test project for neoPLC core for arduino

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages