Hi ,
I am running example in nrf52840 using segger embedded studio .
And i am trying to define __no_init variant ,
May be sameone know what is the syntax . in IAR __no_init works great.
Thanks,
Zvika
Hi ,
I am running example in nrf52840 using segger embedded studio .
And i am trying to define __no_init variant ,
May be sameone know what is the syntax . in IAR __no_init works great.
Thanks,
Zvika
Hi,
__no_init is specific to IAR. There is an example in the SDK where __no_init is used for IAR and other constructs are used for ARM, GNUC and SES. See <sdk_15>\components\libraries\bootloader\dfu\nrf_dfu_settings.c.
From what I understand, your line for a SES project would be something like this:
unsigned int xxxx __attribute__((used));
I recommend that you read up on __attribute__((used)) in order to determine if that is indeed what you are looking for.
Regards,
Terje
unsigned int xxxx __attribute__((used));
No - I think what you need is:
unsigned int xxxx __attribute__ (( section(".non_init") ));
See: devzone.nordicsemi.com/.../132658
I didn't find this anywhere in the Segger documentation but, as SES seems to be based on Rowley CrossWorks, googling led me to find it here:
unsigned int xxxx __attribute__((used));
No - I think what you need is:
unsigned int xxxx __attribute__ (( section(".non_init") ));
See: devzone.nordicsemi.com/.../132658
I didn't find this anywhere in the Segger documentation but, as SES seems to be based on Rowley CrossWorks, googling led me to find it here:
Hi,
Yes, that seems more like it! Thanks for correcting me.
Regards,
Terje