Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions boards/edge_control.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"build": {
"arduino": {
"ldscript": "linker_script.ld"
},
"core": "arduino",
"cpu": "cortex-m4",
"extra_flags": "-DARDUINO_EDGE_CONTROL -DARDUINO_ARCH_NRF52840",
"f_cpu": "64000000L",
"hwids": [
[
"0x2341",
"0x005d"
],
[
"0x2341",
"0x805d"
]
],
"mcu": "nrf52840",
"variant": "EDGE_CONTROL"
},
"connectivity": [
"bluetooth"
],
"debug": {
"jlink_device": "nRF52840_xxAA",
"openocd_target": "nrf52.cfg",
"svd_path": "nrf52840.svd"
},
"frameworks": [
"arduino"
],
"name": "Arduino Edge Control",
"upload": {
"maximum_ram_size": 262144,
"maximum_size": 983040,
"protocol": "sam-ba",
"protocols": [
"jlink",
"nrfjprog",
"nrfutil",
"cmsis-dap",
"sam-ba",
"blackmagic"
],
"use_1200bps_touch": true,
"require_upload_port": true,
"wait_for_upload_port": true
},
"url": "https://docs.arduino.cc/hardware/edge-control",
"vendor": "Arduino"
}
5 changes: 5 additions & 0 deletions examples/arduino-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ platform = nordicnrf52
framework = arduino
board = redbear_blenano2

[env:edge_control]
platform = nordicnrf52
framework = arduino
board = edge_control

[env:redbear_blend2]
platform = nordicnrf52
framework = arduino
Expand Down
4 changes: 4 additions & 0 deletions examples/arduino-blink/src/Blink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

#include <Arduino.h>

#ifndef LED_BUILTIN
#define LED_BUILTIN 13
#endif

void setup()
{
// initialize LED digital pin as an output.
Expand Down
3 changes: 3 additions & 0 deletions examples/arduino-bluefruit-bleuart/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ platform = nordicnrf52
framework = arduino
board = adafruit_feather_nrf52832
monitor_speed = 115200
; nRF crypto only supported on nRF52840
lib_ignore = Adafruit nRFCrypto

[env:adafruit_feather_nrf52840]
platform = nordicnrf52
Expand All @@ -25,6 +27,7 @@ platform = nordicnrf52
framework = arduino
board = nrf52840_dk_adafruit
monitor_speed = 115200

[env:adafruit_metro_nrf52840]
platform = nordicnrf52
framework = arduino
Expand Down
2 changes: 1 addition & 1 deletion platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def configure_default_packages(self, variables, targets):
if not IS_WINDOWS:
self.packages["tool-gperf"]["optional"] = False

if board in ("nano33ble", "nicla_sense_me"):
if board in ("nano33ble", "nicla_sense_me", "edge_control"):
self.packages["toolchain-gccarmnoneeabi"]["version"] = "~1.80201.0"
self.frameworks["arduino"]["package"] = "framework-arduino-mbed"
self.frameworks["arduino"][
Expand Down