From c554c7c00996b54743a073955624da312de052ef Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 18 Sep 2018 20:15:18 +0200 Subject: [PATCH] nrf: use assembly for nrf52, not nrf51 Slightly increase code size, but this is the more correct thing to do. --- targets/pca10040.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/pca10040.json b/targets/pca10040.json index d8215d6b..959c5cb1 100644 --- a/targets/pca10040.json +++ b/targets/pca10040.json @@ -2,7 +2,7 @@ "llvm-target": "armv7m-none-eabi", "build-tags": ["nrf", "nrf52", "nrf52832", "js", "wasm"], "linker": "arm-none-eabi-gcc", - "pre-link-args": ["-nostdlib", "-nostartfiles", "-mcpu=cortex-m4", "-mthumb", "-T", "targets/arm.ld", "-Wl,--gc-sections", "-fno-exceptions", "-fno-unwind-tables", "-ffunction-sections", "-fdata-sections", "-Os", "-DNRF52832_XXAA", "-D__STARTUP_CLEAR_BSS", "-Ilib/CMSIS/CMSIS/Include", "lib/nrfx/mdk/gcc_startup_nrf51.S", "lib/nrfx/mdk/system_nrf52.c"], + "pre-link-args": ["-nostdlib", "-nostartfiles", "-mcpu=cortex-m4", "-mthumb", "-T", "targets/arm.ld", "-Wl,--gc-sections", "-fno-exceptions", "-fno-unwind-tables", "-ffunction-sections", "-fdata-sections", "-Os", "-DNRF52832_XXAA", "-D__STARTUP_CLEAR_BSS", "-Ilib/CMSIS/CMSIS/Include", "lib/nrfx/mdk/gcc_startup_nrf52.S", "lib/nrfx/mdk/system_nrf52.c"], "objcopy": "arm-none-eabi-objcopy", "flash": "nrfjprog -f nrf52 --sectorerase --program {hex} --reset" }