avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] secureAVR processors from Atmel working with avr-gcc


From: Per Arnold Blåsmo
Subject: Re: [avr-gcc-list] secureAVR processors from Atmel working with avr-gcc
Date: Tue, 21 Dec 2004 16:11:12 +0100
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

E. Weddington wrote:

Per Arnold Blåsmo wrote:

Hi All!

I just wants to share some information about using the avr-gcc and avr-libc on the secureAVR chips from Atmel.

In a project I am working on we decided to us Atmel secure chip AT90SC3232CS instead of an ordinary Atmel chip. As most of you knows, info about the chips are under NDA. Therefor I can not give any information about the chips them self.

But, I can share info about that I have made it possible to compile a program using avr-gcc and avr-libc and run it successfully on AT90SC3232CS. It should work for other secureAVR chips also. I will do it for the AT90SC144144CT in the near future.

I translated the header file and modified avr-libc, avr-gcc and avr-binutils to accept the new processor. The patches I made was only the one that is suggested on avr-libc's home page for adding another processor.

The reason for doing this is that in my company we run all servers and workstations on Linux. Our working environment is Linux. Since Atmel only supports the IAR compiler on these chips and IAR only works on MS-windows, I had a problem. I did not want to convert to MS-windows so I had to try modyfing the avr-gcc toolchain.

So far I have only compiled a simple program, but it worked. I am now aiming for some more heavy stuff :-)



This is great!

Thanks :-)



I edit my program using Eclipse.
Compile it using avr-gcc and avr-libc.
Convert the compiled .elf file to extended .coff for debugging
I am using the Voyager emulator system from Atmel to do debugging of my code. Since I do not have the spec. of the communication protocol with the Voyager I have to use AVRStudio (on a windows PC :-( to debug. (I read somewhere that AVRstudio 4.10 can read .elf files, but have not tested that yet)

Correct, but only ELF files that contain DWARF2 debugging info. So you'll have to rebuild your toolset to contain that configure option.

OK, I tried to use the option -gdwarf-2 instead of -g in my makefile, but got an error when compiling. "secureAVR_test.c:1: error: target system does not support the "dwarf-2" debug format"

Is there any info on how to set the parameters to get this debug format.

Atmel supplies an windows-dll file for communication with the Voyager, but I do not know any way to use a windows-dll in a Linux program. Maybe usage of wine and winelib might do it? Perhaps make a Linux program as a connection between simul-avr and Voyager?



You'll have to contact Atmel about this. This is the first I've heard about the Voyager emulation system from Atmel.

Have a look at http://www.atmel.com/dyn/resources/prod_documents/1553S.PDF
Its a big and expensive beast :-)

I have the API spec for the windows dll file, but not any code. I have contacted Atmel and asked if they can supply the windows-dll as a Linux library or as source code. I am sure they don want to give me the source code, but it cant hurt to ask :-)


If someone has be able to tun AVRstudio under wine or otherwise on Linux, I would like to know how ;-)


I think I heard that it's possible, but I don't know how. Some other Linux people would have to comment on this.

I will do some more research on this and see if I find any info on some wine forums.

Eric

Per A.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]