Porting Project to BBAI64

Hi All,

Brand new user to BBAi64 and new member of forum. I’ve been building a control theory inverted pendulum rig on Teensy 4.1 (NXP i.MXRT1062) for the past year and hitting limits on taking the project further hence the transition to the TI SoC architecture. Full admission, I am in way over my head. I have a couple of questions if this community can point me in the right direction.

  1. I’m not interested in the Linux / AI capabilities right now. I want to port my existing codebase from the Teensy 4.1 to one of the R5F cores and run headless Linux. Where is the best place to start and anything I should watch out for?

  2. How do you define which core owns a peripheral? For instance, how to release an SPI channel from an A72 for use with R5F?

  3. My out of box experience was a bit lackluster. The BBAI64 booted to a black screen with a blinking cursor. SD card LED is solid without SD installed. I’m thinking it is failing to boot from eMMC. I’ve seen conflicting information on resolving this. What is the best way today to load the current eMMC image?

  4. I’ve seen conflicting information on if the the PRU-ICSSG cores are accessible and not disabled by TI. Can I use these cores and can I load the TI PRU firmware for industrial encoder protocols (EnDAT, Hiperface DSL, BiSS)?

  5. Can the eHRPWM be used for FOC motor control algorithms on a dedicated R5F core, or is it unable to use the TI MCU+ motor control toolkit?

Thanks for any info you can provide.

-Mike

Kevin,

Thank you for the reply. I appreciate you taking the time to share your examples. I have experience with FreeRTOS but not with Zephyr. Is there a reason to not use the TI FreeRTOS port for the R5F cores?

I see most of the PRU examples are doing basic IO toggling and RPMsg. Are you aware of anyone implementing the TI PRU examples of doing more complex black box PRU firmware (encoder interfaces, ethernet switches, Sigma-delta filters, etc.)?

PRU examples

There are some good PRU examples here open-pru/examples at main · TexasInstruments/open-pru · GitHub.

Note the TI AM64x compatible examples should work with the J721E SoC on the BBAI64 with a little bit of tweaking. Essentially the AM64x has the same PRU,RTU, and RX_PRU cores as the J721E, but with different bases address. The two SoCs have the same PRU_ICSSG sub-system.

A current LLM would probably 1 or 2 shot getting those TI AM64x compatible examples to work on the BBAI64.

Zephyr

I recommend Zephyr as it seems to be the future. The Beagleboard related development for Zephyr has been popping off lately .

I am planing to post a Zephyr template app for the BBAI64 in the coming weeks. Linux+zephyr+pru+rtu+rx_pru