Hi i am trying to test an application using hspi in lpc55s28evk , generated the board,pinmux ,clock and peripheral files from mcu expresso. However when i debug the software i get spi error and when the code enters this function :
static void FLEXCOMM8_init(void) {
RESET_PeripheralReset(kHSLSPI_RST_SHIFT_RSTn);
/* Initialization function */
SPI_MasterInit(FLEXCOMM8_PERIPHERAL, &FLEXCOMM8_config, FLEXCOMM8_CLOCK_SOURCE);
/* Enable interrupts */
SPI_EnableInterrupts(FLEXCOMM8_PERIPHERAL, (kSPI_RxLvlIrq | kSPI_TxLvlIrq));
/* Enable interrupt FLEXCOMM8_IRQn request in the NVIC. */
EnableIRQ(FLEXCOMM8_FLEXCOMM_IRQN);
}
The EnableIRQ(FLEXCOMM8_FLEXCOMM_IRQN); it gets stuck in an infinite loop , please suggest and thanks.
Hello,
How about test the HSPI demo under SDK, and compare your code with demo code ?
BR
Alice