SAMD21 Non-ASF/SAM-BA firmware starting place

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am going to start working on firmware for my SAMD21 custom board and was curious if there are any good recommendations for places to start?  I am not interested in Atmel's SAM-BA because it requires IAR and is ASF based.  The Arduino bootloader is just a minimized version of the same.  I can use SAM-BA/Arduino as references along with the datasheet and figure it all out but was hoping there was a good open source option out there to help minimize the effort?

Any input is appreciated...

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I started on the SAMD11 by playing with a bare project from the github of Alex  Taradov.  If you get his simple example working, then with the data sheets and further searches you can move on.  The datasheets are hard work.  Sometimes simple snippets would help.

You will have to download the ASF to get the header files.  This works in Linux without installing Atmel Studio (I develop using QT Creator).

 

I now have 48MHz dfll locked to 8MHz and 32kHz crystals,  USART and TWI with interrupts, Dallas iButton and now working to get USB.

 

Alex Taradov is my hero for this month!

 

Best of luck.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the information. I know see that my question was way too vague. I was just looking for information on making a bootloader for the samd21.

I too have done the painful dive through ASF to get code working. Even hacked out some code for use with the riot os.

I was just hoping there would be a bootloader example so that I didn't have to do the dive again because I do agree it is painful.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

https://github.com/ataradov/boot... doesn't help? (bootloader for SAMD11; NOT ASF-based.)

Alex is a big help in general, and I have to remember to check whether he's already done the things I was thinking of doing...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In my rush, I did not look closely.  Thanks for information.