Tool/software: Code Composer Studio
Hello,
I look through the constants.c in HSFB firmware.And I notice the code as below:
// ------------- DATA FLASH CHECKSUM ------------- #pragma DATA_SECTION(pmbus_checksum, ".CONFIG"); volatile const Uint32 pmbus_checksum = 0x87654321; #pragma DATA_SECTION(pmbus_checksum_b, ".CONFIG_B"); volatile const Uint32 pmbus_checksum_b;
If i write code after that like this:
#pragma DATA_SECTION(hly_set, ".HLY") volatile const un_hly hly_set = Z;// Z is constant
The location of ".HLY"(org = 0x00018FA0) is after ".CONFIG" in DFLASH.
However,the Z may be erased while the value before CHECKSUM not.
Could you give me some advices?
Thanks!