Set in Keil Asm option to change heap size.

I am using nRF52840, SDK16.0.0, Keil v5.18a to developing application. When I changed heap size in Keil C/C++ option, it failed! It can be successful if you change heap size in Asm option

too. I wonder why do I need to set in Asm option? And for other situation, how do I confirm symbol needed to be set in both C/C++ and Asm option or only C/C++ option.

C/C++ and Asm option like picture below:

Thanks,

Jinzhao Young

Parents
  • Hi Jinzhao,

    You can read about Asm options here. In a nutshell, the Asm options are used as inputs for processing assembly files, and the C/C++ options are used as input when compiling C/C++ files. If you look at the SDK examples you can see that we generally set all options in both and that typically makes more sense than considering if a specific define is only used in C files and/or assembly files. If you want to, you can search in the code though and if an option is not used in any assembly files, then it is OK to only set it in the C/C++ tab.

    Einar

Reply
  • Hi Jinzhao,

    You can read about Asm options here. In a nutshell, the Asm options are used as inputs for processing assembly files, and the C/C++ options are used as input when compiling C/C++ files. If you look at the SDK examples you can see that we generally set all options in both and that typically makes more sense than considering if a specific define is only used in C files and/or assembly files. If you want to, you can search in the code though and if an option is not used in any assembly files, then it is OK to only set it in the C/C++ tab.

    Einar

Children
Related