* Bump Tock kernel version * Update boards to new kernel * Update patches to new kernel * Update PR template * Bump libtock-rs * Use new layout from libtock-rs * Fix clippy warnings due to updated toolchain * Fix new toolchain file format * Bump elf2tab to v0.7.0 * Fix worklow and setup.sh script to use the TOML rust-toolchain file * New libtock-rs style of declaring the stack. * Fix padding in layout file. The layout from libtock-rs generates invalid flash padding. The value is 32-bit and therefore setting padding to 0xff yields 0xff000000 instead of 0xffffffff that we want. * adds tock patch for app break hard fault * sets in deploy, removed patch 04-mpu-fix * fixed the if deploy * fixes indentation * updates board names in install.md * fix docs and deploy style Co-authored-by: Fabian Kaczmarczyck <kaczmarczyck@google.com> Co-authored-by: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com>
Platform-Specific Instructions: nRF52840-Dongle
This is an adapted nrf52840_dongle made to work with OpenSK.
The nRF52840 Dongle is a platform based around the nRF52840, an SoC with an ARM Cortex-M4 and a BLE radio. The kit is uses a USB key form factor and includes 1 button, 1 red LED and 1 RGB LED.
Getting Started
To program the nRF52840 Dongle with Tock, you will need a JLink JTAG device and the appropriate cables. An example setup is:
Then, follow the Tock Getting Started guide
JTAG is the preferred method to program. The development kit has the JTAG pins exposed either through the half-moons pads or, below the PCB, on a Tag-Connect TC2050 connector footprint. You need to install JTAG software.
Programming the kernel
Once you have all software installed, you should be able to simply run make flash in this directory to install a fresh kernel.
Programming user-level applications
You can program an application via JTAG using tockloader:
$ cd libtock-c/examples/<app>
$ make
$ tockloader install --jlink --board nrf52dk
Debugging
See the nrf52dk README for information about debugging the nRF52840 Dongle.