Atmel AVR2052
31
8200M-AVR-11/11
Install WinAVR development suite
, if not already installed
on your PC. Be sure to install only the supported version of
WinAVR, as specified in
f. Add paths to folders containing WinAVR compiler and the
make utility to the PATH Windows environment variable; put
them at the beginning of the variable’s value. The compiler
and the make utility are located in
bin
and
utils\bin
directories in WindAVR installation directory, respectively.
g. Open AVR Studio and go to
Tools > Options
. In the
dialogue window open
AVR Toolchain > GCC 8-bit
and
set
bin
and
utils\bin
directories’ paths as Toolchain and
Make Utility paths.
3. Download and install Java Runtime Environment
, if not already installed on
your PC.
4. Demonstration of OTAU functionality and programming devices with Serial
Bootloader require the Serial Bootloader package, which should be downloaded
from the Atmel website.
9.2 Programming the boards
A firmware image file can be uploaded into the Atmel ATmega128RFA1 device in one
of the following ways: using the Serial Bootloader package or using the JTAG
interface.
9.2.1 Setting fuse bits
provides the default fuse bit configuration loaded into ATmega128RFA1
devices during production. It also describes some use cases when certain fuse bits
require values different from the default ones. Based on their own application-specific
requirements, users can change the fuse bits as well. See
descriptions.
NOTE
Modifying fuse bit settings is possible only using the JTAG programming interface,
and cannot be done using the Serial Bootloader package tools.
Table 9-4.
Fuse bit settings for ATmega128RFA1 devices.
Option
Deafult value in
ATmega128RFA1 devices
Comments
BODLEVEL
Brownout detection
disabled
Can be changed according to application-
specific requirements
OCDEN
Disabled
Can be changed during application
development. Must be disabled for final
products
JTAGEN
Enabled
Must be always enabled
SPIEN
Enabled
Must be always enabled
WDTON
Disabled
Can be changed according to application
requirements
EESAVE
Disabled
Can be changed according to application
requirements