AM2432: Query on Integrating PRU Core Functionality with Arm Cortex R5F Project.

Part Number: AM2432


Hi,

As we are developing an application where we require PRU GPO Functionality for fast toggling (In Mhz) of IO Pins. Although, our other functionality (UART,SPI,I2C & Other Peripherals) run on Arm Cortex R5F Core. 

To make a single binary, we must integrate PRU GPO Firmware with Arm Cortex R5F Firmware and create a single project. For successding it, I wanna know that how complex it would?

Is it feasibile to integrate two firmware and make the core switchable without any issue?

Please provide the more informations and guidance on the same.

  • Hello Nilesh,

    FYI: AM243x PRU Academy is live, along with the OpenPRU repo!

    You can find guidance for getting started with PRU <--> R5F development in the new AM243x PRU Academy:
    https://dev.ti.com/tirex/explore/node?isTheia=false&node=A__AB.mSUi9ihL.a5hIt1grfw__AM24X-ACADEMY__ZPSnq-h__LATEST

    The Getting Started Labs will walk you through the entire process, including how to build the PRU firmware into the R5F firmware.

    This is the very first version of the PRU Academy. If you have questions, find mistakes, have feedback, etc, please reach out to me on the forums. I will publish the next version of the PRU Academy within the next month or so.

    Can I build multiple PRU binaries into the same R5F binary and switch between firmware during runtime? 

    I have not tried this usecase myself, but it should be possible. You can see that the general concept is that the R5F code includes the firmware binaries, and then uses the PRUICSS APIs to load a specific binary into a specific core. So you could probably include multiple firmware binaries, and then have your code load different binaries into a PRU core at different points in time: https://github.com/TexasInstruments/open-pru/blob/main/examples/empty/mcuplus/empty_example.c

    Regards,

    Nick