Skip to content

Commit

Permalink
add instruction for updating the BLE firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
corruptbear committed Feb 20, 2025
1 parent c63aab1 commit eceffc3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions doc/AP4_BLE_Firmware_Update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## BLE firmware update method

1. Navigating to the folder in the AmbiqSuite SDK which contains the firmware update example

```bash
# adjusting the path if neccesary
cd AmbiqSuite_R4.5.0/AmbiqSuite_R4.5.0/boards/apollo4p_blue_kbr_evb/examples/ble/ble_firmware_update/gcc
```

2. Run the following commands, with JLink debugger attached to the device.
```bash
make

echo 'r
loadfile bin/ble_firmware_update.bin 0x00018000
r
g
exit' > bin/flash.jlink

JLinkExe -device AMA4B2KK-KBR -if swd -speed 4000 bin/flash.jlink
```

3. Reflash the device with the app, and verify the updated firmware version at device startup.
```
Reset Reasons: HW Power-On Reset,
BLE Controller Info:
SBL Ver: V1
FW Ver: 1.22.0.0
Chip ID0: 0x92492492
Chip ID1: 0x4170383c
```

0 comments on commit eceffc3

Please sign in to comment.