Part Number: AM2634-Q1
Tool/software:
Hi Champ,
When some code be assigned to once section. through #pragma clang section, even the code is never called (that means unused code) will be linked and assigned to that section.
you can refer to below example, unused function testfunc1 in main.c be linked and be assigned to" .BSW_CODE_SECTION" section.
I attached the example project which i used here.
gpio_led_blink_am263x-cc_r5fss0-0_nortos_ti-arm-clang.rar
May i know if there have any complier option can discard the unused code under this situation?


