summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-07-31 18:52:45 +1000
committerDamien George <damien@micropython.org>2025-08-01 11:34:42 +1000
commitf8f6d71940cb34c762d919a255f084d18fbcf1c1 (patch)
tree78da781859bd2e1cdb629494a9fc03a53fade5fe
parent947d5448b477343fb1b113e24cb3d3b904a9d3e7 (diff)
nrf/drivers/bluetooth: Change soft-device download URL to self hosted.
The existing URLs have started to return a HTTP 403. The simplest way around this is to host the files at micropython.org, and point to them from the download script. The soft-device files have been retrieved from: - https://www.nordicsemi.com/Products/Development-software/s110/download - https://www.nordicsemi.com/Products/Development-software/s132/download - https://www.nordicsemi.com/Products/Development-software/s140/download Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-xports/nrf/drivers/bluetooth/download_ble_stack.sh20
1 files changed, 4 insertions, 16 deletions
diff --git a/ports/nrf/drivers/bluetooth/download_ble_stack.sh b/ports/nrf/drivers/bluetooth/download_ble_stack.sh
index 7886682b7..5004d7a28 100755
--- a/ports/nrf/drivers/bluetooth/download_ble_stack.sh
+++ b/ports/nrf/drivers/bluetooth/download_ble_stack.sh
@@ -10,12 +10,9 @@ function download_s110_nrf51_8_0_0
mkdir -p $1/s110_nrf51_8.0.0
cd $1/s110_nrf51_8.0.0
- wget --post-data="fileName=DeviceDownload&ids=DBBEB2467E4A4EBCB791C2E7BE3FC7A8" https://www.nordicsemi.com/api/sitecore/Products/MedialibraryZipDownload2
- mv MedialibraryZipDownload2 temp.zip
- unzip -u temp.zip
+ wget https://micropython.org/resources/nrf-soft-device/s110nrf51800.zip
unzip -u s110nrf51800.zip
rm s110nrf51800.zip
- rm temp.zip
cd -
}
@@ -29,12 +26,9 @@ function download_s132_nrf52_6_1_1
mkdir -p $1/s132_nrf52_6.1.1
cd $1/s132_nrf52_6.1.1
- wget --post-data="fileName=DeviceDownload&ids=3AB3E86666FE4361A4A3B7E0D1CBB9B9" https://www.nordicsemi.com/api/sitecore/Products/MedialibraryZipDownload2
- mv MedialibraryZipDownload2 temp.zip
- unzip -u temp.zip
+ wget https://micropython.org/resources/nrf-soft-device/s132nrf52611.zip
unzip -u s132nrf52611.zip
rm s132nrf52611.zip
- rm temp.zip
cd -
}
@@ -48,12 +42,9 @@ function download_s140_nrf52_6_1_1
mkdir -p $1/s140_nrf52_6.1.1
cd $1/s140_nrf52_6.1.1
- wget --post-data="fileName=DeviceDownload&ids=CE89BA7633C540AFA48AB88E934DBF05" https://www.nordicsemi.com/api/sitecore/Products/MedialibraryZipDownload2
- mv MedialibraryZipDownload2 temp.zip
- unzip -u temp.zip
+ wget https://micropython.org/resources/nrf-soft-device/s140nrf52611.zip
unzip -u s140nrf52611.zip
rm s140nrf52611.zip
- rm temp.zip
cd -
}
@@ -67,12 +58,9 @@ function download_s140_nrf52_7_3_0
mkdir -p $1/s140_nrf52_7.3.0
cd $1/s140_nrf52_7.3.0
- wget --post-data="fileName=DeviceDownload&ids=59452FDD13BA46EEAD0810A57359F294" https://www.nordicsemi.com/api/sitecore/Products/MedialibraryZipDownload2
- mv MedialibraryZipDownload2 temp.zip
- unzip -u temp.zip
+ wget https://micropython.org/resources/nrf-soft-device/s140_nrf52_7.3.0.zip
unzip -u s140_nrf52_7.3.0.zip
rm s140_nrf52_7.3.0.zip
- rm temp.zip
cd -
}