Skip to content

Commit

Permalink
Merge branch 'release/v3.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Feb 12, 2018
2 parents e983119 + 7219a3c commit a0bf116
Show file tree
Hide file tree
Showing 40 changed files with 539 additions and 425 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
- PLATFORMIO_PROJECT_DIR=examples/arduino-internal-libs
- PLATFORMIO_PROJECT_DIR=examples/mbed-blink
- PLATFORMIO_PROJECT_DIR=examples/mbed-dsp
# - PLATFORMIO_PROJECT_DIR=examples/mbed-events
- PLATFORMIO_PROJECT_DIR=examples/mbed-serial
- PLATFORMIO_PROJECT_DIR=examples/simba-blink

Expand Down
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,27 @@ Atmel | SMART offers Flash- based ARM products based on the ARM Cortex-M0+, Cort

# Usage

1. [Install PlatformIO Core](http://docs.platformio.org/page/core.html)
2. Install Atmel SAM development platform:
```bash
# install the latest stable version
> platformio platform install atmelsam

# install development version
> platformio platform install https://github.com/platformio/platform-atmelsam.git
1. [Install PlatformIO](http://platformio.org)
2. Create PlatformIO project and configure a platform option in [platformio.ini](http://docs.platformio.org/page/projectconf.html) file:

## Stable version

```ini
[env:stable]
platform = atmelsam
board = ...
...
```

## Development version

```ini
[env:development]
platform = https://github.com/platformio/platform-atmelsam.git
board = ...
...
```

# Configuration

Please navigate to [documentation](http://docs.platformio.org/page/platforms/atmelsam.html).
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ environment:
- PLATFORMIO_PROJECT_DIR: "examples/arduino-internal-libs"
- PLATFORMIO_PROJECT_DIR: "examples/mbed-blink"
- PLATFORMIO_PROJECT_DIR: "examples/mbed-dsp"
# - PLATFORMIO_PROJECT_DIR: "examples/mbed-events"
- PLATFORMIO_PROJECT_DIR: "examples/mbed-serial"
- PLATFORMIO_PROJECT_DIR: "examples/simba-blink"

Expand Down
33 changes: 8 additions & 25 deletions boards/adafruit_circuitplayground_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,7 @@
"variant": "circuitplay"
},
"debug": {
"tools": {
"cmsis-dap": {
"server": {
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
},
"blackmagic": {
"hwids": [
[
"0x1d50",
"0x6018"
]
],
"require_debug_port": true
}
}
"openocd_chipname": "at91samd21g18"
},
"frameworks": [
"arduino"
Expand All @@ -55,10 +32,16 @@
"maximum_size": 262144,
"native_usb": true,
"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.adafruit.com/product/3000",
"url": "https://www.adafruit.com/product/3333",
"vendor": "Adafruit"
}
31 changes: 7 additions & 24 deletions boards/adafruit_feather_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,7 @@
"variant": "feather_m0"
},
"debug": {
"tools": {
"cmsis-dap": {
"server": {
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
},
"blackmagic": {
"hwids": [
[
"0x1d50",
"0x6018"
]
],
"require_debug_port": true
}
}
"openocd_chipname": "at91samd21g18"
},
"frameworks": [
"arduino"
Expand All @@ -56,6 +33,12 @@
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"blackmagic",
"jlink",
"atmel-ice"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
9 changes: 9 additions & 0 deletions boards/adafruit_feather_m0_express.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"usb_product": "Feather M0 Express",
"variant": "feather_m0_express"
},
"debug": {
"openocd_chipname": "at91samd21g18"
},
"frameworks": [
"arduino"
],
Expand All @@ -30,6 +33,12 @@
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"blackmagic",
"jlink",
"atmel-ice"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
9 changes: 9 additions & 0 deletions boards/adafruit_gemma_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"usb_product": "Adafruit Gemma M0",
"variant": "gemma_m0"
},
"debug": {
"openocd_chipname": "at91samd21e18"
},
"frameworks": [
"arduino"
],
Expand All @@ -30,6 +33,12 @@
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"blackmagic",
"jlink",
"atmel-ice"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
31 changes: 7 additions & 24 deletions boards/adafruit_metro_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,7 @@
"variant": "metro_m0"
},
"debug": {
"tools": {
"cmsis-dap": {
"server": {
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
},
"blackmagic": {
"hwids": [
[
"0x1d50",
"0x6018"
]
],
"require_debug_port": true
}
}
"openocd_chipname": "at91samd21g18"
},
"frameworks": [
"arduino"
Expand All @@ -56,6 +33,12 @@
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"blackmagic",
"jlink",
"atmel-ice"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
9 changes: 9 additions & 0 deletions boards/adafruit_trinket_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"usb_product": "Adafruit Trinket M0",
"variant": "trinket_m0"
},
"debug": {
"openocd_chipname": "at91samd21e18"
},
"frameworks": [
"arduino"
],
Expand All @@ -30,6 +33,12 @@
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"blackmagic",
"jlink",
"atmel-ice"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
8 changes: 8 additions & 0 deletions boards/digix.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"connectivity": [
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
},
"frameworks": [
"arduino"
],
Expand All @@ -28,6 +31,11 @@
"maximum_size": 524288,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"jlink",
"blackmagic"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
8 changes: 8 additions & 0 deletions boards/due.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"usb_product": "Arduino Due",
"variant": "arduino_due_x"
},
"debug": {
"openocd_chipname": "at91sam3X8E"
},
"connectivity": [
"can"
],
Expand All @@ -37,6 +40,11 @@
"maximum_size": 524288,
"native_usb": false,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"jlink",
"blackmagic"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": false
Expand Down
8 changes: 8 additions & 0 deletions boards/dueUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"connectivity": [
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
},
"frameworks": [
"arduino",
"simba"
Expand All @@ -33,6 +36,11 @@
"maximum_size": 524288,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"jlink",
"blackmagic"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
8 changes: 8 additions & 0 deletions boards/macchina2.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"connectivity": [
"can"
],
"debug": {
"openocd_chipname": "at91sam3X8E"
},
"frameworks": [
"arduino"
],
Expand All @@ -32,6 +35,11 @@
"maximum_size": 524288,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"jlink",
"blackmagic"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
31 changes: 7 additions & 24 deletions boards/mkr1000USB.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,7 @@
"wifi"
],
"debug": {
"tools": {
"cmsis-dap": {
"server": {
"package": "tool-openocd",
"executable": "bin/openocd",
"arguments": [
"-s", "$PACKAGE_DIR/scripts",
"-f", "interface/cmsis-dap.cfg",
"-c", "set CHIPNAME at91samd21g18; set ENDIAN little; set telnet_port 0",
"-f", "target/at91samdXX.cfg"
]
},
"load_cmd": "preload"
},
"blackmagic": {
"hwids": [
[
"0x1d50",
"0x6018"
]
],
"require_debug_port": true
}
}
"openocd_chipname": "at91samd21g18"
},
"frameworks": [
"arduino"
Expand All @@ -66,6 +43,12 @@
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"protocols": [
"sam-ba",
"blackmagic",
"jlink",
"atmel-ice"
],
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
Loading

0 comments on commit a0bf116

Please sign in to comment.