Page 1 of 1

Salvo with EWAVR v4 and AT90CAN128

PostPosted: Thu Jul 07, 2005 2:02 am
by aek
1) Salvo libraries for use with IAR's Embeddd Workbench v4 for AVR are now available for download. New update files (salvo-lite|le|pro-avr-3.2.4-d.zip) contain the previous updates as well as Salvo library files for IAR EWAVR 4, in salvolibiaravr-4.

2) To use Salvo with the AT90CAN128, make the following changes to an existing project (e.g. salvo ut u4):

*) Change line 312 of salvo ut u1main.h to read:

code:
#include <iocan128.h>


*) Change the Salvo library in the project to be e.g. salvolibiaravr-v4sfiaravr3s-e.r90.
*) In EW AVR, under Project -> Options, select -cpu=can128.

Then choose Rebuild All.

Interestingly, IAR EWAVR v4 appears to work properly when linking to Salvo libraries built with IAR EWAVR v3. However, we suggest that you use the new Salvo libraries built with IAR EWAVR v4, located in salvolibiaravr-v4.

------------------

[This message has been edited by aek (edited July 07, 2005).]


Re: Salvo with EWAVR v4 and AT90CAN128

PostPosted: Thu Jul 07, 2005 2:06 am
by aek
Here are the results from a build of tutorial tu4lite for the AT90CAN128:
code:
main.c 
iccavr.exe --cpu=can128 -ms -o C:salvo ut u4sysacDebugObj -D SYSAC -D MAKE_WITH_FREE_LIB -lCN C:salvo ut u4sysacDebugList -lA C:salvo ut u4sysacDebugList -y
--initializers_in_flash -z9 --no_cross_call --no_tbaa --debug -e -I C:salvo ut u4sysac -I c:salvoINC -I c:salvoTUTTU1 -I C:Program FilesIAR SystemsEmbedded Workbench 4.0avr
INC -I C:Program FilesIAR SystemsEmbedded Workbench 4.0avrINCCLIB --eeprom_size 4096 C:salvo ut u4main.c

IAR Atmel AVR C/C++ Compiler V4.10B/W32
Copyright 1996-2005 IAR Systems. All rights reserved.

140 bytes of CODE memory (+ 7 bytes shared)
2 bytes of DATA memory (+ 2 bytes shared)

Errors: none
Warnings: none

mem.c
iccavr.exe --cpu=can128 -ms -o C:salvo ut u4sysacDebugObj -D SYSAC -D MAKE_WITH_FREE_LIB -lCN C:salvo ut u4sysacDebugList -lA C:salvo ut u4sysacDebugList -y
--initializers_in_flash -z9 --no_cross_call --no_tbaa --debug -e -I C:salvo ut u4sysac -I c:salvoINC -I c:salvoTUTTU1 -I C:Program FilesIAR SystemsEmbedded Workbench 4.0avr
INC -I C:Program FilesIAR SystemsEmbedded Workbench 4.0avrINCCLIB --eeprom_size 4096 C:salvosrcmem.c

IAR Atmel AVR C/C++ Compiler V4.10B/W32
Copyright 1996-2005 IAR Systems. All rights reserved.

0 bytes of CODE memory (+ 7 bytes shared)
31 bytes of DATA memory

Errors: none
Warnings: none

Linking
xlink.exe C:salvolibiaravr-v3sfiaravr3s-e.r90 C:salvo ut u4sysacDebugObjmain.r90 C:salvo ut u4sysacDebugObjmem.r90 -o C:salvo ut u4sysacDebugExe u4lite.d90 -l C:
salvo ut u4sysacDebugList u4lite.map -xms -IC:Program FilesIAR SystemsEmbedded Workbench 4.0avrLIB -f C:Program FilesIAR SystemsEmbedded Workbench 4.0avrsrc
templatecfgcan128.xcl -D_..X_HEAP_SIZE=10 -D_..X_TINY_HEAP_SIZE=0 -D_..X_NEAR_HEAP_SIZE=0 -D_..X_FAR_HEAP_SIZE=0 -D_..X_HUGE_HEAP_SIZE=0 -D_..X_CSTACK_SIZE=20
-D_..X_RSTACK_SIZE=20 -e_small_write=_formatted_write -e_medium_read=_formatted_read -f C:Program FilesIAR SystemsEmbedded Workbench 4.0avrsrc emplatecfg3s.xcl
-D_..X_FLASH_BASE=_..X_INTVEC_SIZE -H1895 -h(CODE)0-(_..X_INTVEC_SIZE-1) -D_..X_EXT_SRAM_BASE=_..X_SRAM_END -D_..X_EXT_SRAM_SIZE=0
-D_..X_EXT_ROM_BASE=_..X_SRAM_END -D_..X_EXT_ROM_SIZE=0 -D_..X_EXT_NV_BASE=_..X_SRAM_END -D_..X_EXT_NV_SIZE=0 -D_..X_CSTACK_BASE=_..X_SRAM_BASE
-D_..X_CSTACK_END=_..X_SRAM_END -D_..X_RSTACK_BASE=_..X_SRAM_BASE -D_..X_RSTACK_END=_..X_SRAM_END -rt -s __program_start C:Program FilesIAR SystemsEmbedded
Workbench 4.0avrLIBCLIBcl3s-ec.r90

IAR Universal Linker V4.59J/386
Copyright 1987-2005 IAR Systems. All rights reserved.

1 299 bytes of CODE memory (+ 144 range fill )
97 bytes of DATA memory (+ 2 absolute )

Errors: none
Warnings: none


Total number of errors: 0
Total number of warnings: 0

------------------