Part Number: AM3358
I have a TI-RTOS application running on a BeagleBone Black.
Below is the versions of the tools I'm using.
CCS 8.2.0
AM335x PDK v1.0.14
SYS/BIOS v6.7.2.00
EDMA3 2.12.5
XDCTools v3.51.1.18
Compiler: GNU v7.3.1 (Linaro)
In my application I'm able to initialize PRU1, load an application and receive and interrupt from the PRU. However when I changed it to use PRU0, I get an access violation on the call to PRUISS_create.
PRUICSS_Config *pruss_config;
PRUICSS_socGetInitCfg(&pruss_config);
/* Creates handle for PRUICSS instance */
PRU_handle = PRUICSS_create(pruss_config, PRUICCSS_PRU0); <----------- Crashes here when using PRU0
/* Disable PRUICSS instance */
PRUICSS_pruDisable(PRU_handle, PRUICCSS_PRU0);
/* Register an Interrupt Handler for an event */
PRUICSS_registerIrqHandler(PRU_handle, PRU_EVTOUT0, 20, 19, 1, rx_callback);
/* Sets the buffer pointer for PRU */
PRUICSS_setPRUBuffer(PRU_handle, PRUICCSS_PRU0, pru_code, sizeof(pru_code));
/* Execute program on PRU */
PRUICSS_pruExecProgram(PRU_handle, PRUICCSS_PRU0);
/* Enable PRU */
PRUICSS_pruEnable(PRU_handle, PRUICCSS_PRU0);
As I said, it work great when using PRU1, but when I changed it to PRU0 it crashes.