Having spent the last few days trying to get this to work, I now need some guidance.
I am using the TI RTOS, and need to add the GPMC interface to the project to interface with a FPGA.
1. I updated the pinmux file to include the required pins.
2. Added GPMC initialize and get the handle to the interface.
GPMC_init();
GPMC_Params gpmcParams;
GPMC_Params_init(&gpmcParams);
gpmcHandle = GPMC_open(BOARD_GPMC_INSTANCE, &gpmcParams);
if (NULL == gpmcHandle)
{
#ifndef DISABLE_UART_PRINT
UART_printf("\n\rERROR:\tGPMC Not initialised!");
#endif
}
3. This is setup as "Multiplexed 16b NOR type - synchronous".
4. I then have a 1 second timer task that sends data to the FPGA.
GPMC_Transaction tempGPMC;
tempGPMC.transType = GPMC_TRANSACTION_TYPE_WRITE;
tempGPMC.txBuf = tempTxBuffer;
tempGPMC.count = sizeof(tempTxBuffer);
tempGPMC.arg = NULL;
tempGPMC.rxBuf = NULL; //tempRxBuffer;
tempGPMC.offset = 0;
if (GPMC_transfer(gpmcHandle, &tempGPMC) == true)
{
#ifndef DISABLE_UART_PRINT
UART_printf("\n\rGP GPMC Data Sent");
#endif
}
5. When this transfer is run, the CCS debugger stops with a "CortexA9: Unhandled ADP_Stopped exception" error.
Any ideas on how to find out what is failing? I am sure it is something silly I have not done.
Regards
Andy