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.

AM6442: Not finding PRU0_CTRL, declared it instead. How to improve?

Part Number: AM6442

Hi!

First post here. Having fun with PRUs.

Using the most recent support package from git.

I couldn't find the symbol PRU0_CTRL while extending the SPAD example for a test (PRU0->PRU1). Thus build fails when I include it.

PRU0_CTRL is defined in AM64x_PRU0_intc.cmd and I included:

#include <pru_cfg.h>
#include <pru_ctrl.h>
#include <pru_intc.h>

I could access the register with this declaration and it worked great, I could measure a delay.

volatile __far ctrl *PRU0_CTRL = (volatile ctrl*)0x00022000;

But I see that other registers that I see in examples are not working and I wonder what I'm doing wrong.

For instance, this line doesn't work, the symbol is not present thus the build fails in this line.

CT_CFG.SYSCFG_bit.STANDBY_INIT = 0;

Does it ring a bell?