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
  • .... once it was possible in Keil to "deconstant" a variable by referencing it externally

    i.e.

    ralph.c
    const U8 Jacob;

    rahph.h
    extern U8 Jacob

    george.c
    include ralph.h

    Jacob = 47;

    I hope this is fixed, but do not know if this still is possible and I will not screw up my code to try

    Erik

Reply
  • .... once it was possible in Keil to "deconstant" a variable by referencing it externally

    i.e.

    ralph.c
    const U8 Jacob;

    rahph.h
    extern U8 Jacob

    george.c
    include ralph.h

    Jacob = 47;

    I hope this is fixed, but do not know if this still is possible and I will not screw up my code to try

    Erik

Children