8000 GitHub - pda/arduino-zero-without-ide at cec0b48baa71f3c91f9a08267a371d40d38ade07
[go: up one dir, main page]

Skip to content

pda/arduino-zero-without-ide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arduino-zero-without-ide

Messing with an Arduino Zero sans-IDE, on a ThinkPad running Arch Linux.

Installed packages

arm-none-eabi-binutils
arm-none-eabi-gcc
arm-none-eabi-gdb
arm-none-eabi-newlib

BOSSA

Atmel AVR uses avrdude but Atmel SAM (ARM core) uses BOSSA.

BOSSA mainline (including Arch's bossa-bin AUR package) currently doesn't support Arduino Zero;

$ bossac --port=ttyACM0 --info
No device found on ttyACM0

Arduino uses a bossac binary built from the arduino branch at https://github.com/shumatech/BOSSA/tree/arduino (it took me a long time, and recompiling the cdc_acm kernel module with debug enabled, to figure that out).

$ bossac --port=ttyACM0 --info
Atmel SMART device 0x10010005 found
Device       : ATSAMD21G18A
Chip ID      : 10010005
Version      : v1.1 [Arduino:XYZ] Jun 10 2015 11:08:10
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : none
Security     : false
Boot Flash   : true
BOD          : true
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER

Install BOSSA Arduino branch from source:

git clone --branch arduino https://github.com/shumatech/BOSSA.git ~/code/bossa
cd ~/code/bossa
make
mkdir -p ~/bin && ln -s ~/code/BOSSA/bin/bossa* ~/bin/

Atmel Cortex Microcontroller Software Interface Standard (CMSIS)

ASF seems more useful for an Atmel microcontroller, and ships with a vendored copy of CMSIS v4.00.

Miscellaneous Notes

LED ("digital pin 13") is on PA17 of the MCU.

About

Arduino Zero toolchain without Arduino IDE (Atmel SAM D21 SAMD21G18A)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0