Skip to content

Bare bones blink project for SAM 3X/4E ARM Cortex MCU, like in Due / Duet boards

License

Notifications You must be signed in to change notification settings

chepo92/bare-metal-sam-cortex-M

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bare Metal SAM

Bare bones blink project for Microchip SAM3X8E (Arduino Due) and SAM4E8E (Duet Printer Controller, SAM4E XPRO and so)

Requirements

  • An Arduino Due / Duet
  • USB cable
  • installation of Arduino IDE + SAM boards package (or GNU-ARM compiler package)

Optional : make

blink

Blinks the onboard LED (D13). Working.

NB you will need to alter paths to suit your installation in build.bat/makefile Also change the COM port for your system.

Building

cd blink
./build.bat

Win

Uploading

You may need to erase the Due manually (press erase button) to get it boot from SAM-BA bootloader. Use the native USB for programming.

D:\Git\tool-bossac-py-reset\bossac\win\bossac.exe -i -d --port=COM5 -U false -e -w -b ".\blink.bin" -R

NB There is a bug in older versions of bossac, it crashes on small bin files. You must use v1.7.0 or later which can be found at https://github.com/shumatech/BOSSA/releases

About

Bare bones blink project for SAM 3X/4E ARM Cortex MCU, like in Due / Duet boards

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 69.7%
  • Python 10.7%
  • Batchfile 10.4%
  • Makefile 9.2%