Week 9:

 Embedded Programming

Task

I have this week worked with embedded Programming and completed the following:

  • Skimmed through the Attiny44 data sheet.
  • Programmed my Hello.Echo board:
    • With Arduino Code using Arduino IDE.
    • With C language using Terminal.
    • To make it blink & control the LED with the button.

I have previous experience with Arduino Coding, but really appreciate the thorough walkthrough I received by Bas Withagen which together with Linda Wanders portfolio and the the following FabAcademy Tutorials provided the base for my accomplishment during this week:

ATtiny44 Datasheet
Connecting FabISP & Hello Echo

Programming Steps

  • Connecting HelloEcho
  • Burnloader = set the fuses
  • Upload code using Arduino
  • Upload C-code

Connecting HelloEcho

Running following command:

$ avrdude -c usbtiny -p t44

Got the following respons:

avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override this check.
avrdude done. Thank you.

Second time I got the following message:

avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9207
avrdude: safemode: Fuses OK (H:FF, E:DF, L:FE)
avrdude done. Thank you
Checking and Setting Fuses

Programming with Arduino

  • -

Preparing Arduino Programming Environment
Arduino Settings for FabISP & Hello Echo
Uploading Blink Code to the Hello Echo

Programming with C

Modifying the code

  • -

Modifying C-code
Uploading C-code using Terminal

Uploading the code

After preparing the files, I now open Terminal, navigated to the folder containing the code files and ran the following command:

$ sudo make -f hello.arduino.t44.blink.make program-usbtiny

I then received the following respons (...= irrelevant part removed):

...
Program: 96 bytes (2.3% Full)
...
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: reading input file "hello.arduino.t44.blink.c.hex"
...
Writing | ################################################## | 100% 0.19s
...
avrdude: 96 bytes of flash verified
avrdude: safemode: Fuses OK (H:FF, E:DF, L:FE)
avrdude done. Thank you.

Noticable Work from other FabAcademists