MAS:863 HOW TO MAKE (ALMOST) ANYTHING 2018:

MAS:863 HOW TO MAKE (ALMOST) ANYTHING 2018


––––––
WEEK 7: Embedded Programming

Program the programmer
We will use the board from Week 3 and program it so we can use it as a programmer. The following instructions are for a mac computer.

  • Install homebrew
  • Install cross pack
  • In terminal enter > brew install avrdude > enter > which avrdude
  • Navigate through terminal to your folder 'fts_firmware_bdm_v1'
  • Plug the programmer into your usb to power it and connect the programmer to your board. Make sure that connection is aligned to your miso. Check your schematics for reference.
  • Open the make file and change the name of the programmer to the one you are using and save the make file
  • Open Terminal and type 'make' and hit enter. In case you need to re-run make, type 'run make clean' and then make again.
  • sudo make flash
  • sudo make fuses
  • sudo make rstdisbl
  • 🎉 Great! The board should be programmed. If all went well you can see it in the System Report > USB as USBtinySPI
  • Now, you can remove the solder jump
    Program the Attiny44
  • Make a new folder and name it 'echo'
  • Save both files: hello.ftdi.44.echo.c and hello.ftdi.44.echo.c.make into the echo folder you just created.
  • Rename 'hello.ftdi.44.echo.c.make'' to 'makefile'
  • Locate the folder in terminal by typing in 'cd' space and drag the folder into terminal. You should see the file directory now.s
  • In terminal type 'make' and enter. Followed by 'sudo make program-usbtiny' and 'sudo make program-usbtiny-fuses'
  • Your Attiny44 should be programmed.🎊

Some issues that arose during the process
There was complications with installing Crosspack. For some reason terminal could not find it. Brian the TA had to manually point terminal to the crosspack avrdude folder. I had problems with my attiny44 board and had to resolder some parts. The multimeter kept going off. It turned out my VCC was not connected. I had to take away some solder that was connecting various parts to ground but only when I put more soder at a VCC part that the board was no longer making the multimeter go off.