-
A repo with a couple examples in C++ that builds a firmware bin for the puck.js that could be flashed over DFU would be quite helpful.
Just get nordic SDK https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v12.x.x/ and arm gcc toolchain https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads , setup SDK to point to your gcc folder (e.g. in
components/toolchain/gcc/Makefile.posix
) and run 'make' in any example inside SDK and you get the binary.True that there could be some easy example and board file for Puck with pins/leds etc so you could just copy it to the sdk structure. However to get more into it you need to read lot of 52832 and SDK documentation anyway
https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52832.html?cp=4_2
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/index.html?cp=7_5_9And once you do, you won't need the example anymore :-)
For searching for issues or help you can use https://devzone.nordicsemi.com/
There is also nordic supported segger studio https://www.nordicsemi.com/Software-and-tools/Development-Tools/Segger-Embedded-Studio but example project files for it are only in newest SDKs, definitely not SDK12
As for boards for development - anything with SWD pins accessible is good enough including http://www.espruino.com/Puck.js#pinout . On aliexpress bare nrf52832 board with swd debugger is below $10 total.
Also there is Arduino for nrf52, one older based on SDK11 https://github.com/sandeepmistry/arduino-nRF5 and Adafruit one based on SDK15(?) https://github.com/adafruit/Adafruit_nRF52_Arduino - both would need changing softdevice and bootloader in you Puck
I'd like to dive into writing some native firmware for the puck.js but I've only ever messed around with devices that supported the Arduino IDE.
I'm not a stranger to coding in C++, but I'm a little at a loss when it comes to setting up toolchains for embedded stuff like this.
I've tried looking at the espruino repository, but that supports so many different boards that it's a little difficult to figure out what build process is for what board.
What I definitely don't want to happen is me somehow managing to bork the bootloader and have a puck that I can't flash (if that's even possible)
A repo with a couple examples in C++ that builds a firmware bin for the puck.js that could be flashed over DFU would be quite helpful.