Video

I finally got around to put together a new quad video! Check it out :)

Video

Winter Fields

Flying the quad over snowy fields :)

Music: Soup by Ben Jensen (http://soundcloud.com/bladlus)

Created with OpenShot: http://www.openshot.org/

Text

Alarm Clock 0.3.3 “Squish” released!

image

This release includes minor improvements and various bug fixes:

  • Set app indicator title

Bugs fixed:

290733 - Automatically detect daylight savings time
800635 - Let the WM decide the initial position of the list window
823585 - Check that media player was created successfully
908636 - Don’t show notifications when alarms are stopped/snoozed
885059 - Update timestamp when type is changed for active alarms
977110 - Use segment seeks to prevent playback delays when looping
824337 - Enable alarm when closing the Edit alarm dialog

Please see the Alarm Clock website for details on how to get it!

Tags: alarm-clock
Photo
My first PCB! on Flickr.

My first PCB! on Flickr.

Text

AVR debugWire on Linux

Here’s a mini-howto on how to debug 8-bit AVRs with debugWire on Linux. The examples below apply to the AVR Dragon programmer and ATtiny85 microcontroller, but should work with other supported hardware as well.

NB: target must be powered off an external supply, not from the AVR Dragon! See this post.

Enter debugWire mode

$ avrdude -c dragon_isp -p attiny85 -P usb -U hfuse:w:0x9f:m

Now power-cycle the target.

Do some debugging

$ avarice -g -w -P attiny85 :4242
...
Preparing the target device for On Chip Debugging.
Waiting for connection on port 4242.

$ avr-gdb hello.elf 
...
(gdb) target remote :4242
Remote debugging using :4242
0x00000000 in __vectors ()
(gdb)

Enter ISP mode

$ avrdude -c dragon_isp -P usb -p t85
avrdude: jtagmkII_setparm(): bad response to set parameter command: RSP_FAILED
avrdude: jtagmkII_getsync(): ISP activation failed, trying debugWire
avrdude: Target prepared for ISP, signed off.
avrdude: Please restart avrdude without power-cycling the target.

Target is now temporarily in ISP mode until it is power-cycled again.

$ avrdude -c dragon_isp -P usb -p t85 -v
...
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.15s

avrdude: Device signature = 0x1e930b
avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as 9F
avrdude: safemode: efuse reads as FF
...

You can now reprogram the fuses to disable debugWire.

Tags: AVR