This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA3XEVM: #pragma FUNCTION_OPTIONS seems not working

Part Number: TDA3XEVM

Hello TI,

I built the SBL for TDA3x, but I cannot find some functions in map file (sbl_qspi_opp_nom_ipu1_0_release.xem4.map).

I added FUNCTION_OPTIONS pragma, still cannot find. Any extra steps need to do?

Thanks.

  • I build SBL with following command

    gmake.exe -s -C . sbl BOOTMODE=qspi CORE=ipu1_0 BOARD=tda3xx-evm BUILD_PROFILE=release SBL_BUILD_MODE=dev
    But FUNCTION_OPTIONS should override the file-level optimization option.
  • Hao,

    there are some limitations with the FUNCTION_OPTIONS pragma which are described in more detail in another E2E thread (pragma FUNCTION_OPTIONS not overriding project flags). Due to these limitations it's not possible to use this pragma to disable optimization of just a single function in a file. Instead I would recommend to stay with file options for the optimization level. If reducing this level from currently used -O3 to -O2 instead, the function you're interested in will not be inlined anymore and you can find the symbol in the generated map file. I think for debugging purposes it should be ok to temporary reduce the optimization level of a file.

    Best regards,

    Manfred

  • Hello Manfred,

    Thanks for your reply.

    In our script, it is common to set the same options to all files, setting a separate option to specific file will need some script work instead.

    It should be the same case in TI SBL build.

    But I think it is acceptable.

    Thanks Smiley