From 9d66dca950e8e736a2b1db54f4354926b0a48f92 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 14 Jun 2016 22:39:06 +0100 Subject: [PATCH] Add NRF52 and NRF52_TARGETS. --- hal/targets.json | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/hal/targets.json b/hal/targets.json index 883f27ab4e..ba147f4ca9 100644 --- a/hal/targets.json +++ b/hal/targets.json @@ -1734,5 +1734,36 @@ "progen_target": "samg55j19", "device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH"], "default_build": "standard" + }, + "MCU_NRF52": { + "inherits": ["Target"], + "core": "Cortex-M4F", + "macros": ["NRF52", "TARGET_NRF52832"], + "extra_labels": ["NORDIC", "MCU_NRF52", "MCU_NRF52832"], + "OUTPUT_EXT": "hex", + "is_disk_virtual": true, + "supported_toolchains": ["ARM", "GCC_ARM"], + "public": false, + "detect_code": ["1070"], + "program_cycle_s": 6, + "MERGE_SOFT_DEVICE": true, + "EXPECTED_SOFTDEVICES_WITH_OFFSETS": [ + { + "boot": "", + "name": "s132_nrf52_2.0.0_softdevice.hex", + "offset": 114688 + } + ], + "post_binary_hook": { + "function": "MCU_NRF51Code.binary_hook", + "toolchains": ["ARM_STD", "GCC_ARM"] + }, + "MERGE_BOOTLOADER": false + }, + "NRF52_DK": { + "supported_form_factors": ["ARDUINO"], + "inherits": ["MCU_NRF52"], + "progen": {"target": "nrf52-dk"}, + "device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"] } -} \ No newline at end of file +}