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.

TDA3LX: build sbl occurred error

Part Number: TDA3LX

Hi Expert,
I'm running TI-RTOS Vision SDK v03.04 in the custom board with TDA3x.

I tried to modify the sbl process.
The following error occurred when build sbl. (gmake -s sbl)

Tried to add hsmmcsd_API.h but it did not improve.

Could you please give some suggestion here?
Thanks in advance.

  • Hi Wu Bohan,

    This error typically comes when fatfs library is not added to the SBL while linking. So can you please check if it gets added correctly? 

    Regards,

    Brijesh

  • Hi,

    The sbl code modification is roughly as shown below, add line 00112.

    I don’t understand why SBLUtilsQspiSDBootRprc and SBLUtilsQspiBootRprc are in the same C file (sbl_utils_tda3xx.c), but an error appears when compiling?

    Could you please give some suggestion here?

    Thanks in advance.

  • Hi,

    I am sorry i did not get it. Do you mean you have updated SBL code to read from QSPI or SD card?

    Have you included accordingly binaries required for these boot modes?

    Regards,

    Brijesh

  • Hi,

    I have been describing the same problem...

    I tried to modify the sbl process.
    The sbl code modification is roughly as shown below, add line 00112.


    The following error occurred when build sbl. (gmake -s sbl)


    I don’t understand why SBLUtilsQspiSDBootRprc and SBLUtilsQspiBootRprc are in the same C file (sbl_utils_tda3xx.c), but an error appears when compiling?

    How can I solve the error that occurred when build sbl?

    Thanks in advance.

  • Hi,

    As i said, SBLUtilsQspiSDBootRprc API has dependency on FatFs, so you need to include the fatfs libraries while building this code. This should help in resolving this building issues. 

    But why do you require SBLUtilsQspiSDBootRprc API? I mean why don't you use SBLUtilsQspiBootRprc API? Are you seeing some issue in using SBLUtilsQspiBootRprc API?

    Regards,

    Brijesh

  • Hi,

    As i said, SBLUtilsQspiSDBootRprc API has dependency on FatFs, so you need to include the fatfs libraries while building this code. This should help in resolving this building issues. 

    As my question stated, SBLUtilsQspiSDBootRprc and SBLUtilsQspiBootRprc are in the same C file (sbl_utils_tda3xx.c)
    They have

    #include <ti/drv/stw_lld/fatlib/hsmmcsd_API.h>
    #include <ti/drv/stw_lld/fatlib/fatfs/ff.h>

    Does this include the fatfs libraries ?

     

    But why do you require SBLUtilsQspiSDBootRprc API? I mean why don't you use SBLUtilsQspiBootRprc API? Are you seeing some issue in using SBLUtilsQspiBootRprc API?

    Because I need the sbl can sd card boot or qspi boot.

    Thanks.

  • Hi,

    No, this just includes the fatfs header file. You also need to link to fatfs libraries while building. If it is not included, linker error like this will come.

    Regards,

    Brijesh

  • Hi,

    Can you explain how to link to fatfs libraries?

    Thanks.

  • Hi,

    During linking time, you could add additional libraries using -l option. Please search in the makerules folder, you will get the idea about how to add it.

    Regards,

    Brijesh