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 Telit Charlie board #230

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
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/telit_charlie.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"build": {
"arduino": {
"ldscript": "flash_with_bootloader.ld"
},
"core": "telit",
"cpu": "cortex-m0plus",
"extra_flags": "-DARDUINO_TELIT_SAMD_CHARLIE -D__SAMD21G18A__",
"f_cpu": "48000000L",
"hwids": [
[
"0x04d8",
"0xeaab"
],
[
"0x04d8",
"0xeb97"
]
],
"mcu": "samd21g18a",
"usb_product": "Telit Charlie Board",
"variant": "charlie"
},
"debug": {
"jlink_device": "ATSAMD21G18",
"openocd_chipname": "at91samd21g18",
"openocd_target": "at91samdXX",
"svd_path": "ATSAMD21G18A.svd"
},
"frameworks": [
"arduino"
],
"name": "Telit-Charlie",
"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://www.telit.com/support-tools/development-evaluation-kits/charlie-evaluation-kit-for-cellular-lpwa/",
"vendor": "Telit"
}
2 changes: 2 additions & 0 deletions builder/frameworks/arduino/arduino-samd.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
BUILD_CORE = "arduino"
if VENDOR_CORE == "sparkfun" and board.get("build.mcu", "").startswith("samd51"):
BUILD_CORE = "arduino51"
if VENDOR_CORE == "telit":
BUILD_CORE = "def"

env.Append(
CPPDEFINES=[
Expand Down
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:telit_charlie]
platform = atmelsam
board = telit_charlie
framework = arduino
6 changes: 6 additions & 0 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
"owner": "platformio",
"version": "~1.0.6"
},
"framework-arduino-samd-telit": {
"type": "framework",
"optional": true,
"owner": "platformio",
"version": "https://github.com/maxgerhardt/arduino-charlie/archive/refs/tags/1.0.4.zip"
},
"framework-cmsis": {
"type": "framework",
"optional": true,
Expand Down
7 changes: 6 additions & 1 deletion platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +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 == "telit":
self.packages["toolchain-gccarmnoneeabi"][
"version"] = "~1.70201.0"
self.packages["tool-bossac"]["version"] = "~1.10700.0"
self.packages["framework-cmsis"]["version"] = "~1.40500.0"
self.packages["framework-cmsis-atmel"]["version"] = "~1.2.0"
if (
board.get("build.core", "") in ("adafruit", "seeed", "sparkfun")
and "tool-bossac" in self.packages
Expand Down
Loading