This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Storing data at Specific RAM address

Hi all

I want to store my data used in the code at a particular specific address in RAM of the chip how can i do it .

i tried to this but got data abort error
#define test ((*volatile unsigned int *)(0x00400001)

test = 0x55;

can any one help me to guide me how to go about it .

Parents
  • You can specify this in scatter loading file for the linker.
    Define the varaible to be put in fixed location as a section or in a diffrent file .
    Describe the section or the object file to have data region at the location you want in the sctter loading file.

    Suvidh

Reply
  • You can specify this in scatter loading file for the linker.
    Define the varaible to be put in fixed location as a section or in a diffrent file .
    Describe the section or the object file to have data region at the location you want in the sctter loading file.

    Suvidh

Children
No data