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.

AM6422: MCU Plus SDK: Module/Unit-Tests for R5F HAL/BSP

Part Number: AM6422
Other Parts Discussed in Thread: SYSCONFIG

Hi,

we are currently trying to utilize the R5F cores of an AM6422 for a safety application alongside a Linux OS.

In order to be able to be certified for safety applications, we need to qualify the compiler (which should not be a problem as the TI Compiler Qualification Kit exists for the Clang compiler we are using). We also need to module/unittest the whole application. As we are currently using the TI HAL/BSP from the MCU SDK, we are introducing quite a lot of functions from the HAL we are currently not needing, but would need to test anyways.

Do such tests exist for the MCU SDK HAL/BSP for the R5F cores? This is the last step in our safety certification on this platform.

Regards

Dave

  • Hello Dave, 

    Thanks for the query.

    • Currently, is the entire MCU+SDK integrated into your HAL/BSP? Can you provide examples of a few modules that you are not interested in but are included in the BSP?
    • Ae you integrating the MCU+SDK into your BSP or is some other third party involved? Can you please provide a few more details on this. 
    • Can I know which OS is being run on R5F core? 
    • Only certain parts of the MCU+SDK like the SDLs(Software Diagnostic Library) are safety certified. Hence, you cannot use the entire MCU+SDK in a safety scenario. Can you explain your safety use case and what exactly in MCU+SDK you want to use in your safety application so that we can understand your environment a little better. 

    Regards,

    Nihar Potturu. 

  • Hi Nihar,

    We are using the TI HAL for the Cortex R5F by configuring it via the sysconfig tool. Therefore we are only using the code modules that are necessary for our use case:

    1. MCSPI
    2. IPC
    3. UDMA

    On top of this HAL, we are using a small scheduler to control a set of tasks - thats it. We are neither running additional software nor BSP, OS or other runtimes. There is no third party software involved.

    We are trying to achieve a SIL2 certification, the only thing we do need are module/unittests for the TI HAL.

    Regards

    Dave

  • Hello Dave, 

    The SIL2 certification for IPC module is on AM64x's roadmap. I don't have an exact date yet, but it will be done in the future. Do you have any target date for this? 

    Meanwhile, I am also attaching the git links for internal unit tests done for the modules requested below. Please note that these tests might not extensive enough to cover safety qualification requirements as the MCU+SDK is not safety certified. However, feel free to use them for reference.

    https://github.com/TexasInstruments/mcupsdk-core/tree/next/test/drivers/mcspi

    https://github.com/TexasInstruments/mcupsdk-core/tree/next/test/drivers/ipc_notify

    https://github.com/TexasInstruments/mcupsdk-core/tree/next/test/drivers/ipc_rpmsg

    https://github.com/TexasInstruments/mcupsdk-core/tree/next/test/drivers/udma

    Regards,

    Nihar Potturu. 

  • Hi Nihar,

    i was not aware of this repository, nor that the sdk does contain tests. Thats perfect news for us.

    As we are using baremetal (NoRTOS)-configurations of the TI SDK: are there tests for the noRTOS aswell?

    Our Target date is june 2024.

    I did not find any reference on those tests in the documentation. I think it would be a good idea to document this on in the sdk documentation alongside a description on how to run/build those tests.

    I assume that the tests are to be run on the ealuation board?

    Are there instructions on how to run the tests?

    Will the tests be extended when the certification takes place?

    Regards

    Dave

  • Hello Dave, 

    Are there instructions on how to run the tests?

    You build the test case examples in the same way as you usually build the MCU+SDK examples. 

    gmake -C test/drivers/mcspi/mcspi_controller_peripheral/am64x-evm/r5fss0-0_freertos/ti-arm-clang PROFILE=debug/release

    I assume that the tests are to be run on the ealuation board?

    Yes, you can load and run the binaries on TI EVM.

    Will the tests be extended when the certification takes place?

    The IPC tests should be updated with the additional tests once the certification takes place. 

    As we are using baremetal (NoRTOS)-configurations of the TI SDK: are there tests for the noRTOS aswell?

    We only have freertos based unit test projects. You can modify them by taking the nortos examples as a reference. 

    Regards,

    Nihar Potturu. 

  • Hi Nihar,

    thanks for the clarification.

    I hope that the additional tests / certification will take place sooner than later, but i can work with the current version as a template for our tasks.

    Regards

    Dave