Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 5G-NB-IoT Board + Arduino Core Support #187

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
60 changes: 60 additions & 0 deletions boards/5g_nb_iot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"build": {
"arduino": {
"ldscript": "flash_with_bootloader.ld"
},
"core": "5gnbiot",
"cpu": "cortex-m0plus",
"extra_flags": "-DARDUINO_SAMD_ZERO -D__SAMD21G18A__",
"f_cpu": "48000000L",
"hwids": [
[
"0x2341",
"0x804D"
],
[
"0x2341",
"0x004D"
],
[
"0x2341",
"0x824D"
]
],
"mcu": "samd21g18a",
"usb_product": "5G-NB-IoT",
"variant": "arduino_zero"
},
"debug": {
"jlink_device": "ATSAMD21G18",
"onboard_tools": [
"cmsis-dap"
],
"openocd_chipname": "at91samd21g18",
"openocd_target": "at91samdXX",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
],
"name": "5G-NB-IoT",
"upload": {
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"offset_address": "0x2000",
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"blackmagic",
"jlink",
"atmel-ice"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "https://5ghub.us/product/lte-narrowband-internet-of-things-nb-iot-and-global-navigation-satellite-system-gnss-kit-with-ltegps-antenna-arduino-and-freertos-compatible/",
"vendor": "Arduino LLC"
}
5 changes: 5 additions & 0 deletions examples/arduino-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,8 @@ framework = arduino
platform = atmelsam
board = seeed_wio_lite_mg126
framework = arduino

[env:5g_nb_iot]
platform = atmelsam
board = 5g_nb_iot
framework = arduino
5 changes: 5 additions & 0 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"owner": "platformio",
"version": "~1.8.14"
},
"framework-arduino-samd-5gnbiot": {
"type": "framework",
"optional": true,
"version": "https://github.com/maxgerhardt/framework-arduino-samd-5gnbiot.git"
},
"framework-arduino-samd-adafruit": {
"type": "framework",
"optional": true,
Expand Down
6 changes: 6 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ def configure_default_packages(self, variables, targets):
self.packages["toolchain-gccarmnoneeabi"]["version"] = "~1.90301.0"
if build_core in ("adafruit", "seeed"):
self.packages["framework-cmsis"]["version"] = "~2.50400.0"
if build_core in ("5gnbiot"):
self.packages["toolchain-gccarmnoneeabi"][
"version"] = ">=1.40803.0,<1.40805.0"
self.packages["tool-bossac"]["version"] = "~1.10700.0"
self.packages["framework-cmsis"]["version"] = "~1.40500.0"
self.packages["framework-cmsis-atmel"]["version"] = "~1.1.0"

if (
board.get("build.core", "") in ("adafruit", "seeed", "sparkfun")
Expand Down
Loading