This software was written for the IAR Embedded Workbench, 4.11A/4.10B, but can also be built using 3.20C
To make project: Add this file, bootloader_smbus.c to project, use device -v3, enhanced core, no RAMPZ register, enable bit definitions in I/O include files, optimization was set to medium, override default linker command file with: $PROJ_DIR$\m406s_2kwBootLdr.xcl (included with the source), output format: ubrof8 for Debug and intel_extended for Release.
To program the device with bootloader, one first has to erase the device and program the bootloader, then program the main section without erasing the device first.
This software was written for the IAR Embedded Workbench, 4.11A/4.10B, but can also be built using 3.20C (see note futher down).
To make project: Add the .c files to project (main.c, gpio.c, main.c, pwrmgmt.c, safety.c, smbus.c and timer.c, but not the bootloader bootloader_smbus.c), use device --cpu=m406, CLIB Heap size 0x80, Data stack (CSTACK) 0x80 bytes, Return adress stack (RSTACK) 64 levels, enable bit definitions in I/O include files, optimization low, output format: ubrof8 for Debug and intel_extended for Release
If using IAR EWAVR 3.20, use Prosessor configuration -v3 and override default linker command file with: $PROJ_DIR$\cfgm406s.xcl (file included with the source). You also need to edit analog.c (see todo in CC_Accumulator_ISR(void)).
Generated on Mon Nov 12 15:59:59 2007 for AVR453 Smart Battery Reference Design by
1.5.3