[avr-gcc-list] use of specifin RAM location

2005-11-28 Thread varsha
Hello all, I'm working on avr-gcc (GCC) 3.4.3 compiler and target MCU is Atmega 16 i want to declare some variables, such that hey will take specific ram locations... for ex: as we do in assembly code as, org(ramend-4) date:.byte 1month:.byte 1 how to achieve this in c? Thank you,

Re: [avr-gcc-list] use of specifin RAM location

2005-11-28 Thread Kevin Neff
On Mon, 28 Nov 2005, varsha wrote: I'm working on avr-gcc (GCC) 3.4.3 compiler and target MCU is Atmega 16 i want to declare some variables, such that hey will take specific ram locations... how to achieve this in c? What's the point of using the abstraction of the C language, then? The

RE: [avr-gcc-list] use of specifin RAM location

2005-11-28 Thread Matt.VanDeWerken
I have the same problem, and the point is that part of my external memory is inside an FPGA, basically under control of the FPGA (It's high-speed ADC data), while another part is external SRAM which I use for my heap etc. I access the FPGA memory at the moment using pointers which I initialise

Re: [avr-gcc-list] ld: crts8515.o: No such file; with avr-gcc under Linux

2005-11-28 Thread Günter Dannoritzer
Joerg Wunsch wrote: Günter Dannoritzer [EMAIL PROTECTED] wrote: Not sure whether it was the additional switch --program-prefix that was not shown in the installation instructions ... That option is normally not needed. It defaults to ${prefix}/bin, for whatever prefix you gave with

Re: [avr-gcc-list] use of specifin RAM location

2005-11-28 Thread Daniel O'Connor
On Tue, 29 Nov 2005 11:11, [EMAIL PROTECTED] wrote: That's exactly how I've done it at the moment. Heh, sorry, I sort of was replying to the original poster's email via yours :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about

Re: [avr-gcc-list] ld: crts8515.o: No such file; with avr-gcc under Linux

2005-11-28 Thread Günter Dannoritzer
Eric Weddington wrote: You need to use the -mmcu= option for the link stage too, and specify your microcontroller type. I actually used that Makefile with WinAVR before and it always worked. I tried it with the broken installation and it did not make any difference. Now I am always a bit

Re: [avr-gcc-list] use of specifin RAM location

2005-11-28 Thread David Kelly
On Tue, Nov 29, 2005 at 08:35:05AM +1000, [EMAIL PROTECTED] wrote: I have the same problem, and the point is that part of my external memory is inside an FPGA, basically under control of the FPGA (It's high-speed ADC data), while another part is external SRAM which I use for my heap etc. I

[avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread Matt.VanDeWerken
Hi all: I am looking for an automated way to update a static string in program space when my project is built. Is there an easy way to do this, either by adding an extra target to the makefile, or some other way? I'd prefer not to manually have to change the information, and I'd also prefer for

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread John Altstadt
[EMAIL PROTECTED] wrote: Hi all: I am looking for an automated way to update a static string in program space when my project is built. Is there an easy way to do this, either by adding an extra target to the makefile, or some other way? I'd prefer not to manually have to change the

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread David Kelly
On Nov 28, 2005, at 10:20 PM, [EMAIL PROTECTED] wrote: Hi all: I am looking for an automated way to update a static string in program space when my project is built. Is there an easy way to do this, either by adding an extra target to the makefile, or some other way? I'd prefer not to

RE: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread Matt.VanDeWerken
Hi David/avr-gcc list: The __DATE__ and __TIME__ macros as mentioned by others in this thread are useful for timestamps. However, I'm having a problem getting my head around the following: Suppose I create a version.c file, that contains those macros as progmem strings, like this: const

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread Galen Seitz
Here's a snippet from my Makefile. I think this is probably close to meeting your needs. I probably lifted this from somewhere off the net but I don't recall where. For all I know, it came from this mailing list. galen OBJS= ${ASRCS:$(S)=$(O)} ${SRCS:.c=$(O)} EXTRA_OBJS = date.o .PHONY:

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread Erik Christiansen
On Tue, Nov 29, 2005 at 03:35:19PM +1100, Russell Shaw wrote: In the makefile rule that calls the linker, a shell command could get the current date and then edit the resulting binary to replace a special marker string with the current date. There might be a way to edit the linker script to

Re: [avr-gcc-list] ld: crts8515.o: No such file; with avr-gcc under Linux

2005-11-28 Thread Joerg Wunsch
Günter Dannoritzer [EMAIL PROTECTED] wrote: I should have also tried without the -program-prefix option. Anyhow, another difference I noticed is that for the libc configuration no --prefix is given on the avr libc page. Is that a possible difference? Yes, you need to run it with a consistent