diff --git a/boards.txt b/boards.txt index f6612504..f87ce1ef 100644 --- a/boards.txt +++ b/boards.txt @@ -40,7 +40,7 @@ feather52.build.variant=feather52 # Ram & ROM size varies depending on S132 (check linker script) feather52.menu.softdevice.s132v201=0.5.0 dual, S132 2.0.1 feather52.menu.softdevice.s132v201.build.sd_flags=-DS132 -DSD_VER=201 -feather52.menu.softdevice.s132v201.build.sd_name=s132_v201 +feather52.menu.softdevice.s132v201.build.sd_name=s132 feather52.menu.softdevice.s132v201.build.sd_version=2.0.1 feather52.menu.softdevice.s132v201.build.bootfile=0.5.0/dual/feather52_bootloader_v050_s132_v201 feather52.menu.softdevice.s132v201.upload.maximum_size=165888 @@ -48,8 +48,8 @@ feather52.menu.softdevice.s132v201.upload.maximum_data_size=51072 feather52.menu.softdevice.s132v510=5.1.0 dual, S132 5.1.0 feather52.menu.softdevice.s132v510.build.sd_flags=-DS132 -DSD_VER=510 +feather52.menu.softdevice.s132v510.build.sd_name=s132 feather52.menu.softdevice.s132v510.build.sd_version=5.1.0 -feather52.menu.softdevice.s132v510.build.sd_name=s132_v500 feather52.menu.softdevice.s132v510.build.bootfile={build.sd_version}/dual/feather52_bootloader_5.1.0_s132_dual feather52.menu.softdevice.s132v510.upload.maximum_size=151552 feather52.menu.softdevice.s132v510.upload.maximum_data_size=51072 diff --git a/cores/nRF5/linker/bluefruit52_s132_v201.ld b/cores/nRF5/linker/bluefruit52_s132_2.0.1.ld similarity index 100% rename from cores/nRF5/linker/bluefruit52_s132_v201.ld rename to cores/nRF5/linker/bluefruit52_s132_2.0.1.ld diff --git a/cores/nRF5/linker/bluefruit52_s132_v500.ld b/cores/nRF5/linker/bluefruit52_s132_5.1.0.ld similarity index 100% rename from cores/nRF5/linker/bluefruit52_s132_v500.ld rename to cores/nRF5/linker/bluefruit52_s132_5.1.0.ld diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_err.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_err.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_err.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_err.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_gap.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_gap.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_gap.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_gap.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_gatt.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_gatt.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_gatt.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_gatt.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_gattc.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_gattc.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_gattc.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_gattc.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_gatts.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_gatts.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_gatts.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_gatts.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_hci.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_hci.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_hci.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_hci.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_l2cap.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_l2cap.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_l2cap.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_l2cap.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_ranges.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_ranges.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_ranges.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_ranges.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/ble_types.h b/cores/nRF5/softdevice/s132/2.0.1/headers/ble_types.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/ble_types.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/ble_types.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/nrf52/nrf_mbr.h b/cores/nRF5/softdevice/s132/2.0.1/headers/nrf52/nrf_mbr.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/nrf52/nrf_mbr.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/nrf52/nrf_mbr.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/nrf_error.h b/cores/nRF5/softdevice/s132/2.0.1/headers/nrf_error.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/nrf_error.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/nrf_error.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/nrf_error_sdm.h b/cores/nRF5/softdevice/s132/2.0.1/headers/nrf_error_sdm.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/nrf_error_sdm.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/nrf_error_sdm.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/nrf_error_soc.h b/cores/nRF5/softdevice/s132/2.0.1/headers/nrf_error_soc.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/nrf_error_soc.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/nrf_error_soc.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/nrf_nvic.h b/cores/nRF5/softdevice/s132/2.0.1/headers/nrf_nvic.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/nrf_nvic.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/nrf_nvic.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/nrf_sdm.h b/cores/nRF5/softdevice/s132/2.0.1/headers/nrf_sdm.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/nrf_sdm.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/nrf_sdm.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/nrf_soc.h b/cores/nRF5/softdevice/s132/2.0.1/headers/nrf_soc.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/nrf_soc.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/nrf_soc.h diff --git a/cores/nRF5/softdevice/s132/2.1.0/headers/nrf_svc.h b/cores/nRF5/softdevice/s132/2.0.1/headers/nrf_svc.h similarity index 100% rename from cores/nRF5/softdevice/s132/2.1.0/headers/nrf_svc.h rename to cores/nRF5/softdevice/s132/2.0.1/headers/nrf_svc.h diff --git a/platform.txt b/platform.txt index 44dac2b2..cd59b080 100644 --- a/platform.txt +++ b/platform.txt @@ -51,11 +51,9 @@ compiler.size.cmd=arm-none-eabi-size # this can be overriden in boards.txt build.float_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -build.sd_flags=-DS132 -DSD_VER=201 -build.sd_name=s132_v201 build.debug_flags=-DCFG_DEBUG=0 -Os -build.ldscript=bluefruit52_{build.sd_name}.ld +build.ldscript=bluefruit52_{build.sd_name}_{build.sd_version}.ld # compatiable with other lib only, would remove in the future build.extra_flags=-DARDUINO_FEATHER52 @@ -67,7 +65,7 @@ nffs.path={runtime.platform.path}/libraries/nffs/src nffs.includes="-I{nffs.path}/fs/nffs/include" "-I{nffs.path}/fs/fs/include" "-I{nffs.path}/fs/disk/include" "-I{nffs.path}/util/crc/include" "-I{nffs.path}/kernel/os/include" "-I{nffs.path}/kernel/os/include/os/arch/cortex_m4" "-I{nffs.path}/hw/hal/include" "-I{nffs.path}/sys/flash_map/include" "-I{nffs.path}/sys/defs/include" -compiler.nrf.flags=-DARDUINO_NRF52_ADAFRUIT -DNRF5 -DNRF52 -DNRF52832_XXAA -DUSE_LFXO {build.sd_flags} {build.debug_flags} "-I{nrf.sdk.path}/components/toolchain/" "-I{nrf.sdk.path}/components/toolchain/cmsis/include" "-I{nrf.sdk.path}/components/toolchain/gcc/" "-I{nrf.sdk.path}/components/device/" "-I{nrf.sdk.path}/components/drivers_nrf/delay/" "-I{nrf.sdk.path}/components/drivers_nrf/hal/" "-I{nrf.sdk.path}/components/libraries/util/" "-I{build.core.path}/softdevice/{build.sd_name}/headers/" "-I{rtos.path}/source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52" "-I{build.core.path}/sysview/SEGGER" "-I{build.core.path}/sysview/Config" {nffs.includes} +compiler.nrf.flags=-DARDUINO_NRF52_ADAFRUIT -DNRF5 -DNRF52 -DNRF52832_XXAA -DUSE_LFXO {build.sd_flags} {build.debug_flags} "-I{nrf.sdk.path}/components/toolchain/" "-I{nrf.sdk.path}/components/toolchain/cmsis/include" "-I{nrf.sdk.path}/components/toolchain/gcc/" "-I{nrf.sdk.path}/components/device/" "-I{nrf.sdk.path}/components/drivers_nrf/delay/" "-I{nrf.sdk.path}/components/drivers_nrf/hal/" "-I{nrf.sdk.path}/components/libraries/util/" "-I{build.core.path}/softdevice/{build.sd_name}/{build.sd_version}/headers/" "-I{rtos.path}/source/include" "-I{rtos.path}/config" "-I{rtos.path}/portable/GCC/nrf52" "-I{rtos.path}/portable/CMSIS/nrf52" "-I{build.core.path}/sysview/SEGGER" "-I{build.core.path}/sysview/Config" {nffs.includes} # These can be overridden in platform.local.txt compiler.c.extra_flags=