Wiz-IO / platform-sam-lora

Microchip Atmel SAM34/35 platform for PlatformIO
26 stars 6 forks source link
arduino platformio

Microchip Atmel SAMR34/35 platform for PlatformIO

Version 0.1.2 ( look here, to see if there is something new )

The project is a work in progress and is very beta version - there may be bugs

Baremetal

Arduino Core

sam

The first steps - youtube

Simple LoRa

Platform Installation

Install VS Code + PlatformIO

PlatformIO - Home - Platforms - Advanced Installation

Paste link: https://github.com/Wiz-IO/platform-sam-lora

Fast Uninstall

Goto C:\Users\USER_NAME\.platformio\platforms and delete:

sam

Baremetal INI

[env:samr34xpro]
platform = sam-lora
board = samr34xpro
framework = baremetal
monitor_port = COMx     
monitor_speed = 115200  

Arduino INI

[env:samr34xpro]
platform = sam-lora
board = samr34xpro
framework = arduino
monitor_port = COMx     
monitor_speed = 115200  

CUSTOM UPLOADERS

The Platform use Microchip SAM R34 Xplained Pro with onboard EDBG uploader

I don't have a J-LINK, Atmel ICE, stand alone modules and/or custom bootloaders to add more uploaders

The code has a custom experimental "bootload" uploader and you can use it as an entry point for your experimental uploaders

https://github.com/Wiz-IO/platform-sam-lora/blob/master/builder/frameworks/SAMR_FU.py

The main upload entry function is:

dev_upload(target, source, env)

https://github.com/Wiz-IO/platform-sam-lora/blob/master/builder/frameworks/arduino-samr34.py#L14

There are conditions for distinguishing the tool used - edit and test...

Create new board, Copy/Paste/Rename and edit boards/samr34xpro.json as experimental board

Road Map

Thanks to

If you want to help / support:
paypal