Skip to content

Commit

Permalink
update SD to v6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Aug 22, 2018
1 parent 6bfff29 commit 7961103
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*.bin
*.map
*.hex
!ports/nrf/**/bootloader/**/*.hex
*.dis
*.exe

Expand Down
4 changes: 2 additions & 2 deletions ports/nrf/boards/adafruit_nrf52840_s140_v6.ld
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
GNU linker script for NRF52840 w/S140 6.0.0 SoftDevice
GNU linker script for NRF52840 w/S140 6.x.x SoftDevice

MEMORY MAP
------------------------------------------------------------------------
Expand All @@ -17,7 +17,7 @@
0x00000000..0x00000FFF (4KB) Master Boot Record
*/

/* Specify the memory areas (S140 6.0.0) */
/* Specify the memory areas (S140 6.x.x) */
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x100000
Expand Down
2 changes: 1 addition & 1 deletion ports/nrf/boards/feather52840/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MCU_SERIES = m4
MCU_VARIANT = nrf52
MCU_SUB_VARIANT = nrf52840
SD ?= s140
SOFTDEV_VERSION ?= 6.0.0
SOFTDEV_VERSION ?= 6.1.0

BOOT_SETTING_ADDR = 0xFF000

Expand Down
2 changes: 1 addition & 1 deletion ports/nrf/boards/pca10056/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MCU_SERIES = m4
MCU_VARIANT = nrf52
MCU_SUB_VARIANT = nrf52840
SD ?= s140
SOFTDEV_VERSION ?= 6.0.0
SOFTDEV_VERSION ?= 6.1.0

BOOT_SETTING_ADDR = 0xFF000

Expand Down
36 changes: 36 additions & 0 deletions ports/nrf/drivers/bluetooth/download_ble_stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ function download_s132_nrf52_5_0_0
cd -
}

function download_s132_nrf52_6_1_0
{
echo ""
echo "####################################"
echo "### Downloading s132_nrf52_6.1.0 ###"
echo "####################################"
echo ""
mkdir -p "${1}/s132_nrf52_6.1.0"
cd "${1}/s132_nrf52_6.1.0"
wget https://www.nordicsemi.com/eng/nordic/download_resource/67248/5/32206771/141008
mv 141008 temp.zip
unzip -u temp.zip
rm temp.zip
cd -
}

function download_s140_nrf52_6_0_0
{
echo ""
Expand All @@ -53,6 +69,22 @@ function download_s140_nrf52_6_0_0
cd -
}

function download_s140_nrf52_6_1_0
{
echo ""
echo "####################################"
echo "### Downloading s140_nrf52_6.1.0 ###"
echo "####################################"
echo ""
mkdir -p "${1}/s140_nrf52_6.1.0"
cd "${1}/s140_nrf52_6.1.0"
wget https://www.nordicsemi.com/eng/nordic/download_resource/60624/25/88218841/116072
mv 116072 temp.zip
unzip -u temp.zip
rm temp.zip
cd -
}

SCRIPT_DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

if [ $# -eq 0 ]; then
Expand All @@ -66,8 +98,12 @@ else
download_s132_nrf52_2_0_1 "${SCRIPT_DIR}" ;;
"s132_nrf52_5_0_0" )
download_s132_nrf52_5_0_0 "${SCRIPT_DIR}" ;;
"s132_nrf52_6_1_0" )
download_s132_nrf52_6_1_0 "${SCRIPT_DIR}" ;;
"s140_nrf52_6_0_0" )
download_s140_nrf52_6_0_0 "${SCRIPT_DIR}" ;;
"s140_nrf52_6_1_0" )
download_s140_nrf52_6_1_0 "${SCRIPT_DIR}" ;;
esac
fi

Expand Down

0 comments on commit 7961103

Please sign in to comment.