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

memory address for a variable

How is it possible to tell a variable / or struct array their specific memory address?

e.g. I store the whole c-file in the internal ram (linker-script) and only this one variable I want to store it in the external SRAM at the address 0x10000000?

thanks in advance
JChris

Parents
  • I've a similar question: I want to store a global char array in the external memory. At the moment the char array is stored in the flash memory, because the compiler don't see that the values of the array will be changed during the programm.

    Because this array will be filled with the values receiving by the usb interface. How could I tell the compiler to store this array in the ram not in the flash memory?

    best regards
    Frank

Reply
  • I've a similar question: I want to store a global char array in the external memory. At the moment the char array is stored in the flash memory, because the compiler don't see that the values of the array will be changed during the programm.

    Because this array will be filled with the values receiving by the usb interface. How could I tell the compiler to store this array in the ram not in the flash memory?

    best regards
    Frank

Children
No data