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

Code Segment for Data

Hi,

Is any option like __flash in IAR to store data in the program memory instead of ram??... Want to store 300 bytes of data "uint16_t data[150]={0x3349, 0x4430...." and read it later. I'm trying think like that:

__flash uint6_t data[150]..
code uint6_t data[150]..

But compiler don'r recognizes any...

Thanks

Parents
  • const SHADOW_RAM_CONFIG_DATA_S default_config =

    then

    I do not kbow what you need explained better.

    the linker locates the above struct in the code segment 0x08...., no measures other then what is in the line of code is taken.

    Erik,

    Good you haven't changed since my last visit [and that your keyboards skills are still suspect].

    Your explanation must rank as one of the worst I've ever seen; and I've seen quite a few.

    What is SHADOW_RAM_CONFIG_DATA_S defined as in your project? Is it always available on the STM32f103? Would it be available to other projects written by other people?

    Now who was it who wrote something about using "more words"???

Reply
  • const SHADOW_RAM_CONFIG_DATA_S default_config =

    then

    I do not kbow what you need explained better.

    the linker locates the above struct in the code segment 0x08...., no measures other then what is in the line of code is taken.

    Erik,

    Good you haven't changed since my last visit [and that your keyboards skills are still suspect].

    Your explanation must rank as one of the worst I've ever seen; and I've seen quite a few.

    What is SHADOW_RAM_CONFIG_DATA_S defined as in your project? Is it always available on the STM32f103? Would it be available to other projects written by other people?

    Now who was it who wrote something about using "more words"???

Children