speakerbadge_2011
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | speakerbadge_2011 [2013/08/13 12:13] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Debugging | ||
+ | |||
+ | AVR Studio 4 wants to be in debugWire mode, connect and power the badge, load a project into AVR Studio 4, compile it. Then select Debug, the first time it'll error and ask to enable debugWire mode via SPI , do this, then remove power as per instructions from AVR Studio 4. It should then connect and stop at the main function. | ||
+ | |||
+ | Click < | ||
+ | < | ||
+ | |||
+ | |||
+ | Click OK | ||
+ | < | ||
+ | |||
+ | |||
+ | Cycle the power to the badge ( remove batteries ), Click < | ||
+ | < | ||
+ | |||
+ | |||
+ | You should see something like this, if you don't make sure the power has been completely removed and reconnected. | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== Uploading Arduino Code ===== | ||
+ | |||
+ | You can either patch into the serial pads ( two resistor 0R0 jumpers PD0/PD1 ) and upload with the arduino bootloader and IDE. Or you can just use the programmer to upload the HEX file the Arduino IDE creates. In Windows open up the TEMP folder ( go to the start/ | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Windows will open an explorer window to the temp folder. Then look for the directories that are called build__something.tmp , usually it'll be " | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Clicking on the < | ||
+ | |||
+ | There should be a .hex file with a similar name as the Arduino Project. | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | |||
+ | |||
+ | Now load AVR Studio 4 and use the [[NULLSpace]] Kraken usbasp tool with avrdude and program that hex file to the badge. I'll detail this on a different page. < | ||
+ | |||
+ | |||
+ | For the AVR Dragon etc use :- | ||
+ | Select < | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Change your options as needed. Select < | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | This should appear, change the options to match | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== Undoing debugWIRE mode ===== | ||
+ | |||
+ | If you've been debugging the badge with a Dragon ( the Kraken/ | ||
+ | |||
+ | Open AVR Studio 4 with a suitable project, then Start debugging,I use < | ||
+ | <B>If the option is greyed out, then you're either not debugging, or the CPU isn't halted in single step mode, use < | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Now click < | ||
+ | < | ||
+ | |||
+ | Click Yes | ||
+ | < | ||
+ | |||
+ | |||
+ | The badge should reset, and after 4 or so seconds, this should appear, click OK. | ||
+ | < | ||
+ | |||
+ | |||
+ | Finally click OK to get out of the AVR Options dialog. | ||
+ | |||
+ | debugWire mode is now disabled and you can use normal ISP programmers, | ||
speakerbadge_2011.txt · Last modified: 2013/08/13 12:13 by 127.0.0.1