Skip to content

fanoush/nrf52-legacy-bootloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b96aa4a · Sep 30, 2020

History

18 Commits
May 17, 2020
Sep 21, 2020
Jun 4, 2020
Sep 28, 2020
Sep 30, 2020
Sep 30, 2020
Sep 21, 2020
May 17, 2020
May 18, 2020
May 18, 2020
May 18, 2020
May 18, 2020
Sep 21, 2020
Sep 28, 2020
May 17, 2020
Sep 28, 2020

Repository files navigation

nrf52-legacy-bootloader

SDK11 Nordic legacy DFU OTA bootloader

Getting started

This needs slightly patched Nordic SDK11, run get-sdk11.sh and hopefully it should be downloaded, extracted into SDK11 folder and patched with sdk11.patch. If it fails then do it by hand :-) Needs wget, unzip, patch and dos2unix to convert text files to unix format.

Then just type make, output is in _build/nrf52832_xxaa_s132_<address>.hex.

To build for specific board (e.g. F07) run it like make BOARD=F07 and the output should be in _build/F07_s132_<address>.hex.

Changes

You can change some variables in Makefile

  • BOOTLOADER_START - bootloader start address, one of 78000, 7a000 or 7b000
  • -DFEED_WATCHDOG - will keep feeding watchdog if it is enabled at bootloader entry
  • -DDISABLE_BUTTONLESS_DFU - trims down the size, disables Buttonless DFU
  • -DDISABLE_DFU_APPCHECK - trims down the size, disables check for application and device version in dfu package, softdevice version is still checked
  • -DSMALL_INTERRUPT_VECTORS - trims down size, make initial interrupt vectors area size smaller (from 0x400 to 0x100)
  • GNU_INSTALL_ROOT - location of ARM gcc compiler, I have used gcc-arm-none-eabi-8-2019-q3-update which is latest gcc 8, newer gcc 9 produced bigger code for me

About

Generic Nordic SDK11 legacy DFU bootloader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published