8000 GitHub - pda/arduino-zero-without-ide at a521c06ce76576ec094e3b3a7f56781a6ac52a51
[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

6 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)

Files that look specifically relevant:

sam0/utils/cmsis/samd21/include/pio/samd21g18a.h
sam0/utils/cmsis/samd21/include/samd21g18a.h
sam0/utils/cmsis/samd21/source/gcc/startup_samd21.c
sam0/utils/linker_scripts/samd21/gcc/samd21g18a_flash.ld
sam0/utils/linker_scripts/samd21/gcc/samd21g18a_sram.ld

Other headers etc in sam0/utils/cmsis/samd21 could also be useful.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0