I had struggle with non initialization of static variable in ram section for some months, because i used the ramX which is not init. I will be able to remove the memset that i had to to to manually initialize variable or arrays.
Now that the api is written and lot code use it, it must be kept as it is, but, for conformance with standard variable declaration where init is done, i had choosen
.ramX_noinit is not initialized. .ramX_clear is zeroed. -ramX is initialized with data or code.
alex31 wrote:many thanks for the question, and his answer !
I had struggle with non initialization of static variable in ram section for some months, because i used the ramX which is not init. I will be able to remove the memset that i had to to to manually initialize variable or arrays.
Now that the api is written and lot code use it, it must be kept as it is, but, for conformance with standard variable declaration where init is done, i had choosen
.ramX_noinit is not initialized. .ramX_clear is zeroed. -ramX is initialized with data or code.
Anyway, thanks for information Alexandre
Have you found away to stop the ocd debugger clearing the noinit sections ?