How to use Cortex-M on TI AM62
Introduction
This article aims to provide useful links from TI that would work for Cortex-M on the Verdin AM62 module.
Download and Setup
Setting Up TI MCU+ SDK (prebuilt)
TI provides ready-to-use MCU+ SDK to build RTOS and non-RTOS-based applications for the Cortex-M4 present on Verdin AM62. It is available for download on MCU-PLUS-SDK-AM62X's website, where you can find references for the documentation according to your preferred version. The MCU+ SDK package also contains several examples. It is important to notice that the examples might need some customization to be executed on the module.
Using the prebuilt MCU+ SDK to build your Cortex-M4 firmware is the recommended approach.
To perform the complete setup of the MCU+ SDK, be sure to follow the steps listed in the Getting Started guide of MCU+ SDK's Documentation of your preferred version (see the 'Documentation' section on this link to get all the mandatory tools).
Setting Up TI MCU+ SDK (build from source)
For MCU+ SDK, TI also provides its source code. If you do not want to use the ready-to-use MCU+ SDK, you can build your own by following MCU+ SDK's repository on GitHub.
Please keep in mind that the recommended approach is to use the prebuilt MCU+ SDK instead of building it from source.
Communication Between Cores
Using RPMsg Protocol
Follow the IPC examples to understand how to use the RPMsg Protocol. For more information on how to use RPMsg, refer to the IPC for AM62x article.
Using RemoteProc
TI provides all steps on how to use their RemoteProc on the RemoteProc article.
Additional Resources
TI has a Developer Portal where they provide training articles in order to make using Cortex-M on AM62 easier.
The Academy from TI provides guided examples.