Skip to content

Commit 9d66dca

Browse files
committed
Add NRF52 and NRF52_TARGETS.
1 parent bd2159d commit 9d66dca

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

hal/targets.json

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1734,5 +1734,36 @@
17341734
"progen_target": "samg55j19",
17351735
"device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH"],
17361736
"default_build": "standard"
1737+
},
1738+
"MCU_NRF52": {
1739+
"inherits": ["Target"],
1740+
"core": "Cortex-M4F",
1741+
"macros": ["NRF52", "TARGET_NRF52832"],
1742+
"extra_labels": ["NORDIC", "MCU_NRF52", "MCU_NRF52832"],
1743+
"OUTPUT_EXT": "hex",
1744+
"is_disk_virtual": true,
1745+
"supported_toolchains": ["ARM", "GCC_ARM"],
1746+
"public": false,
1747+
"detect_code": ["1070"],
1748+
"program_cycle_s": 6,
1749+
"MERGE_SOFT_DEVICE": true,
1750+
"EXPECTED_SOFTDEVICES_WITH_OFFSETS": [
1751+
{
1752+
"boot": "",
1753+
"name": "s132_nrf52_2.0.0_softdevice.hex",
1754+
"offset": 114688
1755+
}
1756+
],
1757+
"post_binary_hook": {
1758+
"function": "MCU_NRF51Code.binary_hook",
1759+
"toolchains": ["ARM_STD", "GCC_ARM"]
1760+
},
1761+
"MERGE_BOOTLOADER": false
1762+
},
1763+
"NRF52_DK": {
1764+
"supported_form_factors": ["ARDUINO"],
1765+
"inherits": ["MCU_NRF52"],
1766+
"progen": {"target": "nrf52-dk"},
1767+
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE"]
17371768
}
1738-
}
1769+
}

0 commit comments

Comments
 (0)