Skip to content

A example of nRF51-DKnRF52-DK application using gcc on Linux

License

Notifications You must be signed in to change notification settings

brezal/nrf5x-dk-gcc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nrf5x-dk-gcc

A example of nRF51-DK/nRF52-DK application using gcc on Linux

Strongly inspired by : http://www.funwithelectronics.com/?id=168 https://github.com/hlnd/nrf51-pure-gcc-setup

Notes :

  • nRF52 works but a "fix" is required in the SDK - see at the end of ths README
  • Soft Device support not tested yet
  • this is work in progress - feedback welcome !

Requirements

Usage

Setup the information regarding the SDK you want to use by editing the following variables in the Makefile :

  • SDK_TYPE
  • SDK_VERSION
  • SDK_URL
  • SDK_INSTALL_DIR

Download the SDK : make get_sdk

Extract the SDK : make install_sdk

Generated a Makefile containing definitions for the various components in the SDK : make get_library

Compile the project : make all

Erase the flash : make erase-all

Program the flash : make program

nRF52 SDK fix

It looks like the linker file for the xxaa device is incorrect : the line

RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000

should be

RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000

(the linker file for the blinky example in the SDK has this corrected)

About

A example of nRF51-DKnRF52-DK application using gcc on Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 86.6%
  • Python 10.4%
  • C 2.3%
  • Emacs Lisp 0.7%