Skip to content

Bare bones C 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

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bare Metal SAM

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

Blinks the onboard LED (D13). Working.

Requirements

  • A compatible board, eg. Arduino Due, Duet controller
  • USB cable
  • GNU-ARM compiler package, it can be obtained by installation of Arduino IDE + SAM boards package

Optional : make

Building

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

cd blink
./build.bat

Win

Uploading

You may need to erase the board 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

Note: 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 C 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%