#define accesible at specific location in flash?
Posted: Fri May 03, 2019 8:49 pm
I have a #define that I would like to be accessible at a specific location in flash. Is there an easy way to do this?
Example: during OTA I want to extract the version code from the new bin directly.
Example: during OTA I want to extract the version code from the new bin directly.
Code: Select all
#define VERSION_CODE 1
//example location 0 of the user_app.bin where VERSION_CODE was compiled to
uint8_t versionCode = userAppBin[0];