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.

RTOS/AM5728: McASP example issue

Part Number: AM5728

Tool/software: TI-RTOS

Hello,

I'm having difficulty getting the McASP device loopback example from the PDK working problem. I've successfully generated the project targeting the AM572x arm using the pdkCreateProject script and have imported it into CCSv8. It builds and loads to the evm successfully, but when I run the code it ends going branching to a kill, then an abort, then exit. I would expect the loopback example to continuously loop, transmitting and receiving data on the mcasp. Ideally, I'd like to implement McASP in bare-metal rather than RTOS, but there doesn't seem to be any other example projects outside of the ones generated by the PDK script. There are "test" files in the diag folder, but my understanding is those are to be loaded on an SD. Additionally, there are source files in the csl directory, but only source files, no example projects to import.

Thanks,

Alex.

  • The RTOS team have been notified. They will respond here.
  • Alex,

    The MCASP device loopback doesn`t run in a continuous loop and terminates after transmitting NUM_TEST_FRAMES (100) buffers. This condition was introduced in order for our system test team to automate the test and validation of device internal loopback setup which is more of sanity check operation for the functioning of the IP than a real world example.

    If you check the external stereo loopback example out of AIC310x codec that example runs continuously and can be used for your testing as it does take input from analog audio source and digitizes it and then loops it back on the MCASP serializers to the line out ports.

    We don`t have no-OS examples of McASP in the diagnostics for this device but you can refer to the mcasp example for our evmK2G platform to see that the MCASP programming interface can also be programmed using bare-metal interface.


    Regards,
    Rahul
  • I built the examples for the evmK2G using the pdkCreateProjects script and searched through the directories but wasn't able to find a bare metal example. I was able to find an example source file in the CSL (pdk_install_path/packages/ti/csl/example/mcasp/mcasp_transmit/mcaspTransmit.c) for the mcasp and after spending some time resolving all the missing include directories and symbols I was able to a it to compile. I exported the project and attached it for anyone else who might be interested in it. I don't have my hardware with me right now so I haven't tested it. I suspect paths will need to be slightly modified for anyone else who does try to use this as I did not make paths relative or portable.

    edit: fixed typos

    mcasp_evmAM572x_armExampleProject.zip