platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
79 stars 105 forks source link

Added support for samc21_xpro; using same openocd target as samd21_xpro #100

Closed zeroisnan closed 4 years ago

zeroisnan commented 4 years ago

Resolve #92 Support for SAMC21

This change was tested with a SAMC21 XplainedPRO board. I am new to this so I hope I provided all the required information.

zeroisnan commented 4 years ago

Hi, I see tests with mbed are failing.

I did test the change (build, upload, debug) with a SAMC21 XplainedPRO board, but I am not using any framework (I am importing an AtmeslStart generated framework, but that is another story).

Possible options:

Apologies for not having checked this aspect before issuing a pull request

Regards, nico

valeros commented 4 years ago

Hi @zeroisnan ! Thanks for the PR! It looks like this board doesn't support mbed framework, so there is no reason to mention it in the board manifest (you can assign an empty list to the frameworks filed). For the same reason this board shouldn't have been added to the examples. As for openocd target, it should be fine since you correctly specified the chipname field.

valeros commented 4 years ago

The url https://developer.mbed.org/platforms/SAMC21-XPRO/ seems broken as well.

zeroisnan commented 4 years ago

HI @valeros how is the URL used? If it is for information purposes, I could like the page at Microchip https://www.microchip.com/DevelopmentTools/ProductDetails/PartNO/ATSAMC21-XPRO

valeros commented 4 years ago

https://www.microchip.com/DevelopmentTools/ProductDetails/PartNO/ATSAMC21-XPRO is just what we need.

zeroisnan commented 4 years ago

done, let me know if anything else is needed

maxgerhardt commented 4 years ago

@zeroisnan, do you have a PlatformIO example project for the chip, presumably using the ASF or Atmel Start framework?