Hello,
i am using an ICE Board (AM3359) and the SPI0 at the expansion header J12 with the API from Starterware. As example i´ve took "mcSPIflash" and ethercat_appl
The SPI (withpout interrupt) is working fine if i take a while loop and call the McSPITransfer_2() function which contains
(McSPICSAssert(),IntEnable(),ChannelEnable(), Transmit/ReceiveData().......)
If i use the McSPITransfer() from the McSPIFlash example with /* Wait until control returns back from McSPI ISR.*/
(McSPICSAssert(),IntEnable(),ChannelEnable(), then while(flagg);/* Wait until control returns back from McSPI ISR.*/ ) i can´t see any output data. Transmit/Receive Data would be called in the SPI-ISR. Neither in the McSPITransfer() or in the ISR function a breakpoint is not reached.
The INT is configured as follows:
IntMasterIRQEnable(); /* Enable IRQ in CPSR.*/
IntAINTCInit(); /* Initialize ARM interrupt controller */
IntRegister(SYS_INT_SPI0INT, McSPIIsr); /* Register McSPIIsr interrupt handler */
IntPrioritySet(SYS_INT_SPI0INT, 0, AINTC_HOSTINT_ROUTE_IRQ);
IntSystemEnable(SYS_INT_SPI0INT);
I don´t know where to search to solve the problem.
Where i can see if the interrupt SPI0 (Int.Nr.65) would be triggered?
Can anyone help me?
Thank you