Skip to main content
Visitor II
March 30, 2020
Question

How to define variable at specific flash memory address (STM8L151F3)

  • March 30, 2020
  • 1 reply
  • 710 views

Hi,

I am using the IAR to program the STM8L151F3. And in my project I need to create a "serialization" controlled by me.

And I want to record a variable in the last flash memory. How to do this using IAR?

    This topic has been closed for replies.

    1 reply

    Leo1986Author
    Visitor II
    April 9, 2020

    That's how it's done:

    __root const char idNumber[4] = {0x01, 0x23, 0x45, 0x67};