This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Hi , I am Using Segger Embedded stodio . __no_init not work ?

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

Parents
  • 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

Reply
  • 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

Children
Related