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
  • And was that supposed to be useful to the OP? What are you suggesting with it? that all structures go into the code segment 0x08?
    what I DID show (in the original post where you could not detect that SHADOW_RAM_CONFIG_DATA_S was a structure name) was that 'const' put the data in the code area, that, at least, should be obvious (to most)

    Erik
    original post:

    this one goes in the code segment

    const SHADOW_RAM_CONFIG_DATA_S default_config =

Reply
  • And was that supposed to be useful to the OP? What are you suggesting with it? that all structures go into the code segment 0x08?
    what I DID show (in the original post where you could not detect that SHADOW_RAM_CONFIG_DATA_S was a structure name) was that 'const' put the data in the code area, that, at least, should be obvious (to most)

    Erik
    original post:

    this one goes in the code segment

    const SHADOW_RAM_CONFIG_DATA_S default_config =

Children