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.

TDA4VM: ATCM Or BTCM when using SCI in autosar

  • Hi,

    When you are booting the MCU1_0 application in SPL boot flow, then it is booted by the R5 SPL.

    R5 SPL does not enable ATCM for MCU1_0 and hence your understanding is correct, it can not be used. However, BTCM can be used as that is enabled.

    Regards

    Karan

  • Dear Expert,

        I have further questions. Does the SBL and SPL mean the same thing? If I use SBL, could I use ATCM then?

  • Hi,

    SBL and SPL are different bootloaders in TI SDK. SBL is the default RTOS bootloader and SPL / u-boot is the default Linux bootloader packaged in the Linux SDK.

    SBL enabled the ATCM explicitly using the _sblTcmEn function, defined at pdk/packages/ti/boot/sbl/soc/k3/sbl_misc.asm. Hence you could use ATCM when booting from SBL.

    For SPL, an option is to enable ATCM in the application code itself as the choice of runtime meddling with TCMs should remain with the firmware / application rather than it being a generic bootloader behavior.

    You can use the same code as in _sblTcmEn to do that:

        asm(" MRC p15, #0, r0, c9, c1, #1 ");

        asm(" BFC r0, #12, #20 ");

        asm(" ORR r0, r0, #0x1 ");

        asm(" MCR p15, #0, r0, c9, c1, #1 ");

    Regards

    Karan

  • Dear Expert,

         I get it. Thank you,