how to define a memory position variable and give it a value
From: Mark (yodai_at_spamnot.mail.vu)
Date: 03/31/04
- Next message: Henrik Johnsson: "Re: Replacing PCMCIA SRAM card?"
- Previous message: Hans-Bernhard Broeker: "Re: RAM usage with arm-gcc"
- Next in thread: Mark A. Odell: "Re: how to define a memory position variable and give it a value"
- Reply:(deleted message) Mark A. Odell: "Re: how to define a memory position variable and give it a value"
- Reply: Hans-Bernhard Broeker: "Re: how to define a memory position variable and give it a value"
- Reply: Sergio Masci: "Re: how to define a memory position variable and give it a value"
- Reply: Mark: "soled! [Re: how to define a memory position variable and give it a value]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 13:59:47 GMT
I've already had Mark A. Odell answer this question saying this can't be
done portably. He also sugested me coming to this group with the question
see if anyone here has some idea on how to do this... I am working on a
MSP430 and using IAR ew compiler...
<reposted>
Hey all.... I'm trying to do something that should be easy, but my compiler
doesn't allow me... I am trying to define a variable into a certain memory
position and then assign a default value for it....
#define _CLAVE1 ((uint16_t*)0xD000)
//This memory position is located on a flash memory
//of an embedded system and has to have the
//startup value of '99' but it will be changed from time
//to time from inside my program, which writes into the flash...
// so I try to define it's value, but my compiler says
// "_CLAVE1 redefined" if I do this
#define ((uint16_t*)0xD000) 99
//I've tried all sorts of combinations, and still, nothing works...
Any idea on how to define a memory position and it's initial value without
initialising the value from inside the program?
- Next message: Henrik Johnsson: "Re: Replacing PCMCIA SRAM card?"
- Previous message: Hans-Bernhard Broeker: "Re: RAM usage with arm-gcc"
- Next in thread: Mark A. Odell: "Re: how to define a memory position variable and give it a value"
- Reply:(deleted message) Mark A. Odell: "Re: how to define a memory position variable and give it a value"
- Reply: Hans-Bernhard Broeker: "Re: how to define a memory position variable and give it a value"
- Reply: Sergio Masci: "Re: how to define a memory position variable and give it a value"
- Reply: Mark: "soled! [Re: how to define a memory position variable and give it a value]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|