Thanks for your quick reply.
sodaq_autonomo.json:
{
"build": {
"core": "sodaq",
"system": "samd",
"cpu": "cortex-m0plus",
"extra_flags": "-D__SAMD21J18A__ -DARDUINO_ARCH_SAMD -DARDUINO_SODAQ_AUTONOMO",
"f_cpu": "48000000L",
"hwids": [
[
"0x2341",
"0x804d"
],
[
"0x2341",
"0x004d"
]
],
"ldscript": "flash_with_bootloader.ld",
"mcu": "samd21j18a",
"usb_product": "SODAQ Autonomo",
"variant": "sodaq_autonomo"
},
"frameworks": [
"arduino",
"cmsis"
],
"name": "SODAQ Autonomo",
"upload": {
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "http://support.sodaq.com/sodaq-one/autonomo/getting-started-autonomo/",
"vendor": "SODAQ"
}
I may actually just be able to include only the header files I need in the project directory, rather than using the include path to all SAMD boards with the ‘samd.h’ include which is what I’m currently doing.
I just realsied that I am using a sodaq ONE board, and the MCU on here is the samd21G18A, not the J. Perhaps thats causing the issue.
Here is the contents of the sodaq_one.json file though:
{
"build": {
"core": "sodaq",
"system": "samd",
"cpu": "cortex-m0plus",
"extra_flags": "-D__SAMD21G18A__ -DARDUINO_ARCH_SAMD -DARDUINO_SODAQ_ONE",
"f_cpu": "48000000L",
"hwids": [
[
"0x2341",
"0x804d"
],
[
"0x2341",
"0x004d"
]
],
"ldscript": "flash_with_bootloader.ld",
"mcu": "samd21g18a",
"usb_product": "SODAQ ONE",
"variant": "sodaq_one"
},
"debug": {
"tools": {
"jlink": {
"server": [
{
"arguments": [
"-singlerun",
"-if", "SWD",
"-select", "USB",
"-device", "ATSAMD21G18",
"-port", "2331"
],
"executable": "JLinkGDBServerCL.exe",
"system": [
"windows",
"windows_amd64",
"windows_x86"
]
},
{
"arguments": [
"-singlerun",
"-if", "SWD",
"-select", "USB",
"-device", "ATSAMD21G18",
"-port", "2331"
],
"executable": "JLinkGDBServer",
"system": [
"darwin_x86_64",
"linux_i686",
"linux_x86_64"
]
}
]
}
}
},
"frameworks": [
"arduino",
"cmsis"
],
"name": "SODAQ ONE",
"upload": {
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "http://support.sodaq.com/sodaq-one/",
"vendor": "SODAQ"
}