Hi,Could anyone please show me an example how to reach that a variable will be preserved after a software reset in RX231 MCU. I could not yet figure out how to define and manage such a section.
Thanks, best regards
gebild
Hello,Thank you for posting your question online.Could you please specify the compiler you use?Thank you,Panos
Of course, sorry for not writing it in the original post.CC-RX, v2.08.01
Seems I could figure it out finally, that's what I did:
#pragma section preserve
WHATEVER_t Whatever; //variable to be preserved
#pragma section
In addition the section had to be added in "MYPROJECT > Properties > C/C++Build > Linker > Section" as follows:
There may be nicer and more scientific solutions, but it works for me.best regards - gebild