home..

Week 8 - Embedded Programming

group page // repo source files // objectives

Contents

objectives >

hero >

samd11c >

prog

the samd11c is a versatile chip with built-in USB (no ch340 or ftdi needed after flashing the bootloader!) that is beloved by the fab academy community. datasheet located here.

some quick specifications:

on that last spec, programming devices w/ a built-in USB interface is extremely friendly, but not necessarily space efficient. That’s one of the major tradeoffs I’ve noticed between different programming flows; physical space (number of programming pins) vs convenience.

the full datasheet is a very large body of text, weighing in at a whopping 981 pages. the samd11c is organized like other datasheets. there are many, many sections, but the ones that are most useful for implementing in projects are as follows:

depending on your target application, there are additional sections for each peripheral, but unless you are using that peripheral, it is unlikely that you will need that section.

bootloader >

spent a decent amount of time unsuccessfully flashing bootloader onto my samd11c board from ecad week.

followed the guide by Quentin Bolsee.

heeded the warning about the bootprotection fuse from this Fablab Kannai page.

microchip’s own article about this issue.

programming >

despite efforts programming the samd11c (both Microchip Studio and edbg), computer(s) both windows and linux wouldn’t recognize them.

I didn’t realize it at first, but Atmel Studio 7 is now called Microchip Studio. It’s implied in a lot of places, or not even mentioned

gif


later, discovered that I was most likely using a dud. don’t take anything for granted! discovered this after making up another samd11c board and successfully following through the steps.

This was before I had easy access to an oscilloscope, but in the future, I’ll likely follow these steps:

  1. try another board (if available)
  2. check mcu for life signs (power, programming lines) if programming is failing
  3. make another board

closer towards crunch for getting the final project working, I loaded serialstep, which I modified from the original Urumbu repo to work with the pololu A4988 stepper driver.

sam

using the Urumbot.py program from the Urumbu repo, I get the motor running in my final project.

a previous project >

to both prove I can control something and in lieu of a working board (that isn’t a programmer) this week…

note: had some trouble getting video to deploy on site, found some existing issues on this.

connor

result

© 2023 Alan Han   •  Powered by Soopr   •  Theme  Moonwalk