Quantcast
Viewing all articles
Browse latest Browse all 63778

Forum Post: MSP430FR5969: GCC v5.3.0.219 using persistent attribute

Part Number: MSP430FR5969 Hi, I'm trying to place some persistent variables into FRAM on the MSP430FR5969 using the current GCC compiler. I am using a make file to build the project. I do NOT use CCS ide. I have checked that the linker script has a .PERSISTENT section declared, but am unable to get the variable to change. For example: void myFunction(void) { __attribute__ ((persistent)) uint8_t count = 0; printf("The count:%u", count++); } when I call myFunction(), count does not increment. Everything compiles ok, and there is a .persistent. segment reported by the linker. Any ideas as to why I can't get count to increment? Thanks, Peter Philippa.

Viewing all articles
Browse latest Browse all 63778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>