Commit Graph
988 Commits
Author SHA1 Message Date
Eduardo José Tagle c61f330c1d Merge branch 'master' of https://github.com/ejtagle/Adafruit_nRF52_Bootloader 2026-02-02 14:28:35 -03:00
Eduardo José Tagle 1307fe7f57 Enable FLASH overwrite protection from user applications for MBR and bootloader 2026-02-02 14:28:12 -03:00
hathach a76d419c34 minor clean up 2026-02-02 14:30:32 +07:00
Eduardo José TagleandCopilot e6da12ab45 Update Makefile
Yes, the '-D' was missing

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-31 16:23:36 -03:00
Eduardo José Tagle 4d1ca56d0a nice!nano board has no buttons 2026-01-31 16:20:36 -03:00
Eduardo José Tagle e8ffbd019a Allow using an external LNA/PA to increase BLE range 2026-01-31 16:19:57 -03:00
Eduardo José Tagle d0f13ea1fe Made sure to clear pending interrupts and exceptions before jumping to the user application. Was rarely causing locks 2026-01-31 16:17:22 -03:00
Eduardo José Tagle 87b8354d1f Allow defaulting to OTA DFU instead of Serial/UF2 DFU (turned off by default) 2026-01-30 13:09:24 -03:00
Eduardo José Tagle 3249f41dd9 In case a RESET command is received in the middle of a OTA DFU, reboot to bootloader to allow the DFU app to recover previously interrupted transfers, instead of reverting to the last working firmware and launching it 2026-01-27 22:41:20 -03:00
Eduardo José Tagle 6770e15527 Merge branch 'adafruit:master' into master 2026-01-26 14:38:12 -03:00
Ha Thach 30c734971e Merge pull request #376 from adafruit/pr/1
Make User Button DFU/FRESET optional
2026-01-26 17:35:04 +07:00
hathach 794aef2053 clean up 2026-01-26 17:27:57 +07:00
hathach 698bfa2c09 Merge branch 'master' into fork/SeeedJP/pr/1
# Conflicts:
#	src/boards/boards.c
#	src/main.c
2026-01-26 16:27:01 +07:00
Eduardo José Tagle c9dd183d4d Merge branch 'adafruit:master' into master 2026-01-26 01:33:20 -03:00
Eduardo José Tagle 29dd14ee46 Merged improvements 2026-01-26 00:49:52 -03:00
Eduardo José Tagle e1ea1c6dd1 Wait until FLASH operation queue has enough available room, instead of silently dropping operations 2026-01-26 00:44:54 -03:00
Ha Thach 78540d604f Merge pull request #375 from ejtagle/master
Huge improvement in stability,reliability and speed, restored dual_bank support and signed firmware verification
2026-01-23 14:35:43 +07:00
hathach 3c4470889b minor clean up and fix dfu_bl_image_validate() return nrf error code 2026-01-23 14:30:58 +07:00
Ha ThachandCopilot 3e87e07921 fix typo
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-21 09:06:12 +07:00
Eduardo José Tagle 827edd212b Bumped SLAVE_LATENCY to 4. Does not make any difference in our tests, but https://stackoverflow.com/questions/32588325/ios-bluetooth-le-code-6-the-connection-has-timed-out-unexpectedly suggests this is the best to solve the ConnectionTimedOutUnexpectedly on IOS 2026-01-15 19:14:41 -03:00
Eduardo José Tagle 16477539d9 Fix autodetection of workarounds for GCC 12.x 13.x and 14.x under Windows 2026-01-15 15:43:59 -03:00
Eduardo José Tagle 6b5158a682 Removed redundant call to verify if the supplied public key is valid 2026-01-15 15:31:16 -03:00
Eduardo José Tagle 0623a20120 Fixed compilation 2026-01-15 02:51:01 -03:00
Eduardo José Tagle 33070836f9 Add missing tinycrypt dependency 2026-01-15 02:38:13 -03:00
Eduardo José Tagle 01290c728b Improved documentation on dual bank and signed bootloader 2026-01-15 02:35:05 -03:00
Eduardo José Tagle c8af92c4d8 Implement signed firmware verification: If enabled (Disabled by default), the bootloader will reject and not flash any firmware that is not digitally signed with the proper key 2026-01-15 01:53:57 -03:00
Eduardo José Tagle f20bfe9f63 Add DUAL_BANK functionality (disabled by default, can be enabled passing DUAL_BANK=1 to the Makefile in the make command line 2026-01-15 01:40:51 -03:00
Eduardo José Tagle d8c27bb7fd If there is no application in FLASH, or flash was corrupted, make sure to restart in DFU mode 2026-01-15 01:31:36 -03:00
Eduardo José Tagle 88eab38a6c Allow flashing of a SINGLE BANK bootloader after a DUAL BANKED bootloader was installed. Without this patch, the SINGLE BANK bootloader will end in a continuous loop and no recovery without a JTAG programmer is possible 2026-01-15 01:26:03 -03:00
Eduardo José Tagle 450ce3b3c6 Definitions for DUAL BANKED firmware updates (storing 2 copies of the firmware, so if a firmware update fails, the bootloader can revert to the previously working firmware) 2026-01-15 01:22:12 -03:00
Eduardo José Tagle efe383d090 Add DFU mode exit timeout of 3 minutes. If the user enters DFU mode BUT does nothing, in about 3 minutes, the bootloader will exit and start executing the user application 2026-01-15 01:19:15 -03:00
Eduardo José Tagle ca46deb0a2 Factor out FLASH erase procedure (non OTA), fix FLASH write procedure (non OTA), use them instead of repeating code 2026-01-15 01:14:50 -03:00
Eduardo José Tagle d28c2e0871 Enable negotiation of MTU sizes above 20. This will significatively increase DFU write speed 2026-01-15 01:03:53 -03:00
Eduardo José Tagle 36422ba612 Speedup FLASH writes by temporarily increasing BLE stack local latency 2026-01-15 00:46:27 -03:00
Eduardo José Tagle 04d029a5bd Allow overriding device name in DFU mode 2026-01-15 00:43:27 -03:00
Eduardo José Tagle b5ddc1879e Fix improper processing of Flash WRITE/ERASE completion notifications that was causing the DFU firmware update to sometimes crash 2026-01-15 00:41:16 -03:00
Eduardo José Tagle 2910556adc Wait until notification queue has enough room so no notifications of completed operations to the DFU app are lost 2026-01-15 00:36:14 -03:00
Eduardo José Tagle f5ab453f75 Allow BLE characteristics to support both WriteWithoutResponse (for compatibility with Nordic DFU apps) and WriteWithResponse (for improved reliability) 2026-01-15 00:31:39 -03:00
Ha Thach 0147d71e73 Merge pull request #372 from adafruit/update-buildsystem
Update buildsystem
2025-12-19 23:20:30 +07:00
hathach 24768bcd9a clean up 2025-12-19 22:55:38 +07:00
hathach 859a721b41 remove git submodules from uf2 version 2025-12-19 18:11:08 +07:00
hathach d7e4a2572a update cmake build 2025-12-19 17:25:24 +07:00
hathach 4493a352cb add board.cmake 2025-12-19 16:42:31 +07:00
Ha Thach c4b2c5039f Merge pull request #366 from JuergenLeber/master
feat: finalize SoftDevice S340 support
2025-12-04 17:19:12 +07:00
Ha Thach a766738509 Merge pull request #367 from tomaszduda23/master
fix boot loop due to wrong value read from REGOUT0
2025-12-04 17:17:45 +07:00
Tomasz Duda 6250be4bf1 fix boot loop due to wrong value read from REGOUT0 2025-11-11 21:50:29 +01:00
Jürgen Leber 4ca93c5139 feat: adjust documentation for builds with SoftDevice S340 2025-10-27 21:05:08 +01:00
Jürgen Leber fa1caccd67 feat: add ANT_LICENSE_KEY handling for SoftDevice S340 2025-10-27 20:57:29 +01:00
Ha Thach 6a9a6a3e6d Merge pull request #359 from JuergenLeber/add-sd-s340-support
feat: add support for SoftDevice S340
2025-06-30 17:54:31 +07:00
hathach 31c3081668 update makefile/cmake for softdevice macro. Remove the _s340 filter in ci 2025-06-30 17:32:49 +07:00