Part Number: TMDX654IDKEVM
Tool/software: Linux
I have modified sample led toggle program from pru-software-support-package-5.4.0 as below
#include <stdint.h>
#include <pru_cfg.h>
#include "resource_table_empty.h"
volatile register uint32_t __R30;
volatile register uint32_t __R31;
void main(void)
{
volatile uint32_t gpio;
CT_CFG.gpcfg0_reg = 0;
/* Clear GPO pins */
__R30 = 0x0000;
/* Toggle GPO pins TODO: Figure out which to use */
gpio = 0xFFFF;
/* TODO: Create stop condition, else it will toggle indefinitely */
while (1) {
__R30 ^= gpio;
__delay_cycles(100000000);
}
}
I compiled this code and and put generated .out in evm running linux SDK 5.3.0.7, after starting firmware,nothing seems to be working. I want to use GPIO1_38 PRG0_PRU0GPO9 pin connected to one of the ethernet LEDs.