Skip to main content
greg_t
Associate III
October 26, 2010
Question

Struct in Flash

  • October 26, 2010
  • 11 replies
  • 2669 views
Posted on October 26, 2010 at 19:42

Struct in Flash

    This topic has been closed for replies.

    11 replies

    damh
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:12

    A similar way like clive:

    typedef struct {

        uint32_t a;

        uint32_t b;

        uint32_t c;

    } tFlashParams;

    #define flashParams    ((volatile tFlashParams *) 0x0801F000)

    Be sure, that only 16 bit wide AND 16 bit aligned writes should be used!

    I would NOT use any way of IAR specific pragma commands!