How to define variable at specific flash memory address (STM8L151F3)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-30 7:12 AM
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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-04-09 1:04 PM
That's how it's done:
__root const char idNumber[4] = {0x01, 0x23, 0x45, 0x67};
