The following section is not required for your first attack - you can jump right to the tutorial if you wish. However you'll ultimately wish to modify the code of the device under test, and these instructions tell you how. You should first follow the tutorial to confirm your system is working before modifying the code however!
To build the code, you'll need to install WinAVR avr-gcc on Windows (if using the Virtual Machine, the following is ''not required'', as the VM comes setup with the AVR compiler already).On Windows, you could choose to install:
Note that the default codebase ''does not'' include the cryptographic code we attack* Atmel AVR-GCC standalone - see [http://www.atmel. Instead you are required to add this code into the system com/tools/atmelavrtoolchainforwindows.aspx Atmel avr-gcc standalone]* WinAVR. Last release - if the external code changes2010, this may eventually be instead rolled into the main codebasesee [https://sourceforge. net/projects/winavr/files/latest/download?source=typ_redirect WinAVR Page] To setup test the codebuild, follow the following these steps:
<ol style="list-style-type: decimal;">
For details about programming the targets, see [[Tutorial B1 Building a SimpleSerial Project]].
=== WinAVR Path Settings ===
By default, WinAVR is added to your system path. This means you can run avr-gcc, make and other programs from your normal Windows command line. You may not want this on certain systems where you already have similar tools installed. In which case either uncheck the Add WinAVR to Path option, or edit your system path to remove the WinAVR directories.
If you do not add it to the system path, you’ll need a method of readding the WinAVR directories when you want to use WinAVR. To do so create a file called winavr.bat in C:\WinAVR-20100110 with the following contents:
set PATH=%PATH%;C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin
cmd
Now when you want to run WinAVR (e.g. to continue the examples here), you can simply double-click on the winavr.bat file. This will configure the path for just that terminal, rather than every terminal you open.
Note if using WinAVR on Windows 8.1, you must replace the dll msys-1.0.dll with an updated version. See [http://www.avrfreaks.net/forum/windows-81-compilation-error Windows 8.1 Fix] for a link to this DLL replacement.