Техническая Спецификация для Atmel ATSAM3S-EK2

Скачать
Страница из 71
 
 
 
 
 
54 
Atmel AVR2055 
 
 
8348D-AVR-06/12 
can be loaded to the device using the Bootloader PC tool from the Serial Bootloader 
package, as described in Section 
 
Enabling OTAU bootloader support requires the 
BOOTSZ fuse to be set to Boot 
Flash size=2048 words start address=$F800, and hence the following fuse 
bytes values:  
0xFF, 0x9A, 0x62 
10.3.2 Extended (MAC) address assignment 
Running any application on top of BitCloud requires that a unique 64-bit MAC address 
is assigned for each device using the 
CS_UID parameter. The node does not join the 
network unless the address is non-zero and different from 
0xFFFFFFFFFFFFFFFF. 
At startup, the software assigns the MAC address as follows. If 
CS_UID is set to zero 
at compile time, then the stack attempts to load the MAC address from a dedicated 
external EEPROM chip. If such EEPROM is not available or the address cannot be 
obtained, then MAC address is assigned to 0 and, hence, for correct networking, it 
needs to be changed by the application at run time. If 
CS_UID is set to a non-zero 
value at compile time, then this value will be used as the MAC address. 
NOTE 
External EEPROM is present on the RCB128RFA1 board as well as on the STK600-
ATmega128RFA1 top card, but some engineering samples may not have the MAC 
address programmed.  
NOTE 
In all reference applications supplied with BitCloud Profile Suite, CS_UID is assigned 
at compile time based on the device type, and values from external EEPROM are not 
used. 
10.3.3 Programming with IAR Embedded Workbench 
10.3.3.1 Precompiled images 
When using IAR Embedded Workbench to program precompiled images provided 
with  the  SDK, the user first needs to create a project containing the precompiled 
image. 
1.  Start IAR Embedded Workbench for AVR 
2.  Select 
File > New > Workspace
 
3.  Select 
Project > Create New Project…
 
4.  In the 
Create New Project
 dialog, select 
Externally build executable
 in 
Project templates:
 
5.  Select a name for the project, and click 
Save
 
6.  Follow the instructions in
 readme.txt
 
7.  Once the project is set up, select 
Project > Options
 
8.  In the 
General options
 category, set 
Processor Configuration
 to 
cpu=xm256a3, ATmega128RFA1
 
9.  Click 
OK
 
10. Select 
JTAGICE mkII > Fuse Handler 
(
JTAGICE 3 > Fuse Handler
11. Click 
Read Fuses
, and make sure that the device fuses are set as specified in 
Section 
12. If fuses are set incorrectly, select the correct fuse settings, and click 
Program 
fuses
 
13. Select 
Project > Download and debug
 
14. Once the debugging session has started, click
 Stop debugging
 
The image is now installed on the board.