PUREmodules

Check out the main page www.PUREmodules.com

PUREmodules were designed around the Modular Sensor Architecture to make hardware prototypes faster, simpler and easier.  Our goal is to build an ecosystem of hardware that utilizes the Open Architecture as a launching point for your next project. 


Arduino Examples
Super Sensor Arduino Sample Code

Arduino Setup for nrf52 Core module



Windows Development links
GCC
For compiling the code you will need to install a compiler, here are directions for setting up a windows environment. 

Mingw MSYS: http://www.mingw.org/wiki/msys  easiest way is just get the installer here you can also download Mingw and add on MSYS. 

Next install both, make sure in get MSYS. 

Next Add the tools to your path. Default path is C:\Program Files (x86)\GNU Tools ARM Embedded\4.8 2014q2\bin  and C:\MinGW\msys\1.0\bin
In most cases you need to have the msys path before %SystemRoot%\system32;%SystemRoot% stuff. 

Nordic Tools

Download and install SDK

JLink Drivers

on the command line you can flash hex onto the board via the following command
"nrfjprog --chiperase --program YOURAPPHERE.hex -f NRF52"

SDK setup
modify C:\nRF5_SDK\components\toolchain\gcc\Makefile.windows to point the the right version of GCC
example for version 5.4.0 arm gcc tools this is what it will look like
GNU_INSTALL_ROOT := C:/Program Files (x86)/GNU Tools ARM Embedded/5.4 2016q3
GNU_VERSION := 5.4.0
GNU_PREFIX := arm-none-eabi

Softdevice
You will need a softdevice with your hex file if you are using the BLE stack from nordic, the simplest way to to this is with merging the softdevice and your hex, then you can flash just one hex file. 
mergehex -m %SOFTDEVICE_NAME% %APP_NAME% -o %MERGE_NAME%

Here is what my bat file looks like for flashing code:
mergehex -m C:\nRF5_SDK\components\softdevice\s132\hex\s132_nrf52_3.0.0_softdevice.hex ./_build/nrf52832_xxaa.hex -o nrf52832_s132.hex
nrfjprog --chiperase --program nrf52832_s132.hex -f NRF52 -r


Bootloader
Notes posted here: nrf52_secure_bootloader

Links

Comments