Tool/software:
HI,
C2642 chip, I use IAR environment and define variables using noinit. Before software reset, I assigned userResetReason a value of 1234. Why is this variable still 0 after reset. I often try the following three methods but none of them work.
//uint32_t userResetReason __attribute__ ((section (".noinit")));
//__no_init uint32_t userResetReason;
uint32_t userResetReason __attribute__ ((retain, noinit));
IAR 9.32.1
sdk:simplelink_cc13xx_cc26xx_sdk_7_10_01_24