Skip to content

Commit

Permalink
Merge branch 'release/v2.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Sep 7, 2017
2 parents 0dded21 + 81cf20a commit 3e43ae3
Show file tree
Hide file tree
Showing 23 changed files with 133 additions and 62 deletions.
5 changes: 3 additions & 2 deletions boards/adafruit_circuitplayground_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
Expand Down
7 changes: 4 additions & 3 deletions boards/adafruit_feather_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"build": {
"core": "adafruit",
"system": "samd",
"extra_flags": "-D__SAMD21G18A__ -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARDUINO_SAMD_FEATHER_M0 -lsamd21_qtouch_gcc",
"extra_flags": "-DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARDUINO_SAMD_FEATHER_M0 -D__SAMD21G18A__",
"cpu": "cortex-m0plus",
"f_cpu": "48000000L",
"hwids": [
Expand All @@ -27,9 +27,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
Expand Down
2 changes: 1 addition & 1 deletion boards/adafruit_feather_m0_express.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"build": {
"core": "adafruit",
"system": "samd",
"extra_flags": "-D__SAMD21G18A__ -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARDUINO_SAMD_FEATHER_M0 -DARDUINO_SAMD_FEATHER_M0_EXPRESS -lsamd21_qtouch_gcc",
"extra_flags": "-DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARDUINO_SAMD_FEATHER_M0 -DARDUINO_SAMD_FEATHER_M0_EXPRESS -D__SAMD21G18A__",
"cpu": "cortex-m0plus",
"f_cpu": "48000000L",
"hwids": [
Expand Down
39 changes: 39 additions & 0 deletions boards/adafruit_gemma_m0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"build": {
"core": "adafruit",
"system": "samd",
"extra_flags": "-DARDUINO_ARCH_SAMD -DARDUINO_GEMMA_M0 -DCRYSTALLESS -DADAFRUIT_GEMMA_M0 -D__SAMD21E18A__",
"cpu": "cortex-m0plus",
"f_cpu": "48000000L",
"hwids": [
[
"0x239A",
"0x801C"
],
[
"0x239A",
"0x001C"
]
],
"ldscript": "flash_with_bootloader.ld",
"mcu": "samd21e18a",
"usb_product": "Adafruit Gemma M0",
"variant": "gemma_m0"
},
"frameworks": [
"arduino"
],
"name": "Adafruit Gemma M0",
"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": "https://www.adafruit.com/product/3501",
"vendor": "Adafruit"
}
7 changes: 4 additions & 3 deletions boards/adafruit_metro_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"build": {
"core": "adafruit",
"system": "samd",
"extra_flags": "-D__SAMD21G18A__ -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DDADAFRUIT_METRO_M0_EXPRESS -lsamd21_qtouch_gcc",
"extra_flags": "-DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DDADAFRUIT_METRO_M0_EXPRESS -D__SAMD21G18A__",
"cpu": "cortex-m0plus",
"f_cpu": "48000000L",
"hwids": [
Expand All @@ -27,9 +27,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
Expand Down
39 changes: 39 additions & 0 deletions boards/adafruit_trinket_m0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"build": {
"core": "adafruit",
"system": "samd",
"extra_flags": "-DARDUINO_ARCH_SAMD -DARDUINO_TRINKET_M0 -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__",
"cpu": "cortex-m0plus",
"f_cpu": "48000000L",
"hwids": [
[
"0x239A",
"0x801E"
],
[
"0x239A",
"0x001E"
]
],
"ldscript": "flash_with_bootloader.ld",
"mcu": "samd21e18a",
"usb_product": "Adafruit Trinket M0",
"variant": "trinket_m0"
},
"frameworks": [
"arduino"
],
"name": "Adafruit Trinket M0",
"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": "https://www.adafruit.com/product/3500",
"vendor": "Adafruit"
}
2 changes: 1 addition & 1 deletion boards/due.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"use_1200bps_touch": true,
"wait_for_upload_port": false
},
"url": "http://www.arduino.org/products/boards/4-arduino-boards/arduino-due",
"url": "https://www.arduino.cc/en/Main/ArduinoBoardDue",
"vendor": "Arduino"
}
2 changes: 1 addition & 1 deletion boards/dueUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "http://www.arduino.org/products/boards/4-arduino-boards/arduino-due",
"url": "https://www.arduino.cc/en/Main/ArduinoBoardDue",
"vendor": "Arduino"
}
5 changes: 3 additions & 2 deletions boards/mkr1000USB.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
Expand Down
7 changes: 4 additions & 3 deletions boards/mzeroUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "mon program \"$PROG_DIR/firmware.bin\" 0x4000"
Expand Down Expand Up @@ -58,6 +59,6 @@
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "http://www.arduino.org/products/boards/arduino-m0",
"url": "https://www.arduino.cc/en/Main/ArduinoBoardM0",
"vendor": "Arduino"
}
7 changes: 4 additions & 3 deletions boards/mzeropro.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "mon program \"$PROG_DIR/firmware.bin\" 0x4000",
Expand All @@ -51,6 +52,6 @@
"use_1200bps_touch": false,
"wait_for_upload_port": false
},
"url": "http://www.arduino.org/products/boards/arduino-m0-pro",
"url": "https://www.arduino.cc/en/Main/ArduinoBoardM0PRO",
"vendor": "Arduino"
}
2 changes: 1 addition & 1 deletion boards/mzeroproUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "http://www.arduino.org/products/boards/arduino-m0-pro",
"url": "https://www.arduino.cc/en/Main/ArduinoBoardM0PRO",
"vendor": "Arduino"
}
7 changes: 4 additions & 3 deletions boards/samd21g18a.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18",
"-f", "scripts/target/at91samdXX.cfg"
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18;",
"-f", "target/at91samdXX.cfg"
]
},
"onboard": true
Expand Down
5 changes: 3 additions & 2 deletions boards/sparkfun_samd21_dev_usb.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
Expand Down
5 changes: 3 additions & 2 deletions boards/sparkfun_samd21_mini_usb.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
Expand Down
2 changes: 1 addition & 1 deletion boards/tian.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"use_1200bps_touch": true,
"wait_for_upload_port": true
},
"url": "http://www.arduino.org/products/boards/arduino-tian",
"url": "https://www.arduino.cc/en/Main/ArduinoBoardTian",
"vendor": "Arduino"
}
7 changes: 4 additions & 3 deletions boards/zero.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-f", "scripts/interface/cmsis-dap.cfg",
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "scripts/target/at91samdXX.cfg"
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload",
"load_cmd": "mon program \"$PROG_DIR/firmware.bin\" 0x2000",
"onboard": true
}
}
Expand Down
7 changes: 3 additions & 4 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
RANLIB="arm-none-eabi-ranlib",
SIZETOOL="arm-none-eabi-size",

ARFLAGS=["rcs"],
ARFLAGS=["rc"],

ASFLAGS=["-x", "assembler-with-cpp"],

Expand Down Expand Up @@ -155,8 +155,6 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
UPLOADERFLAGS=[
"-s", join(platform.get_package_dir("tool-openocd") or "",
"scripts"),
"-s", join(platform.get_package_dir("tool-openocd") or "",
"scripts", "board"),
"-f", join(env.BoardConfig().get("upload.openocdcfg", ""))
],

Expand Down Expand Up @@ -213,7 +211,8 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
"avrdude.conf"),
"-c", "$UPLOAD_PROTOCOL",
"-P", '"$UPLOAD_PORT"',
"-b", "$UPLOAD_SPEED"
"-b", "$UPLOAD_SPEED",
"-u"
],

UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS -U flash:w:$SOURCES:i'
Expand Down
9 changes: 2 additions & 7 deletions examples/arduino-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html

[env:adafruit_circuitplayground_m0]
[env:adafruit_gemma_m0]
platform = atmelsam
framework = arduino
board = adafruit_circuitplayground_m0
board = adafruit_gemma_m0

[env:adafruit_feather_m0]
platform = atmelsam
Expand Down Expand Up @@ -47,11 +47,6 @@ platform = atmelsam
framework = arduino
board = mzeropro

[env:mzeroproUSB]
platform = atmelsam
framework = arduino
board = mzeroproUSB

[env:mzeroUSB]
platform = atmelsam
framework = arduino
Expand Down
9 changes: 2 additions & 7 deletions examples/arduino-external-libs/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html

[env:adafruit_circuitplayground_m0]
[env:adafruit_gemma_m0]
platform = atmelsam
framework = arduino
board = adafruit_circuitplayground_m0
board = adafruit_gemma_m0

[env:adafruit_feather_m0]
platform = atmelsam
Expand Down Expand Up @@ -47,11 +47,6 @@ platform = atmelsam
framework = arduino
board = mzeropro

[env:mzeroproUSB]
platform = atmelsam
framework = arduino
board = mzeroproUSB

[env:mzeroUSB]
platform = atmelsam
framework = arduino
Expand Down
9 changes: 2 additions & 7 deletions examples/arduino-internal-libs/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html

[env:adafruit_circuitplayground_m0]
[env:adafruit_gemma_m0]
platform = atmelsam
framework = arduino
board = adafruit_circuitplayground_m0
board = adafruit_gemma_m0

[env:adafruit_feather_m0]
platform = atmelsam
Expand Down Expand Up @@ -47,11 +47,6 @@ platform = atmelsam
framework = arduino
board = mzeropro

[env:mzeroproUSB]
platform = atmelsam
framework = arduino
board = mzeroproUSB

[env:mzeroUSB]
platform = atmelsam
framework = arduino
Expand Down
Loading

0 comments on commit 3e43ae3

Please sign in to comment.