- Silicon Labs Community
- Welcome and Announcements
- Silicon Labs Knowledge Base
- 8-bit MCU
- 32-bit MCU
- Bluetooth / Wi-Fi
- Other Products Category
- Optical/RH/Temp Sensor
- Other Products
- Hardware and Software Tools
- Simplicity Studio and Software
- General Discussions and Suggestions
- Chinese Forum
- Software Libraries
- Development Kits
- Reference Designs
- Third Party Tools
- White Papers
- Official Blog of Silicon Labs
- Chinese Blog
04-18-2017 04:56 PM - last edited on 04-24-2017 09:23 AM by Siliconlabs
I am working with EM3588 to perform a ZigBee power cycle reset. I want to have a variable which is incremented every time the chip has been reset, meaning it will have to be saved in memory. Currently, I only see the key word PGM which allows for a static variable to be stored in memory, which does not work for me as I would like it to increment. So is there a way to save a dynamic variable in memory?
04-18-2017 10:33 PM
I don't know this part well and what toolchain you are using to develop program for it.
Not sure below KB helps or not.
It looks like you also need to modify/write the variable, I think you need explicitly use the MSC to write the content of the variable.
Maybe another option is to reserve a flash space for this variable. See below KB if helps or not: