platform-sam-lora
platform-sam-lora copied to clipboard
Microchip Atmel SAM34/35 platform for PlatformIO
Microchip Atmel SAMR34/35 platform for PlatformIO
Version 0.1.2 ( look here, to see if there is something new )
- OS Windows ( for now )
-
- Baremetal
-
- Arduino ( in process... )
- Board Microchip SAM R34 Xplained Pro
- Framework Source Codes and Examples
- Wiki ( read )
The project is a work in progress and is very beta version - there may be bugs
Baremetal
Arduino Core
- Arduino core
- GPIO, ADC, Serial, I2C, SPI, RF
- LoRa & LoraWAN
- Variant: Microchip SAM R34 Xplained Pro
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:
- folder sam-lora ( builders )
- folder framework-sam-lora ( sources )
- folder tool-sam-lora ( uploader )
- folder toolchain-gccarmnoneeabi (compiler )
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
- Baremetal Uploaders ( now works with atbackend/atprogram )
- Baremetal ASF/CMSIS
- Arduino Bootloader
- Arduino Core
- Arduino Libraries
- Examples
Thanks to
- Ivan Kravets ( PlatformIO )
- Miguel Romani ( TheThings )
- Comet Electronics