lpc55s28evk hspi ( EnableIRQ(FLEXCOMM8_FLEXCOMM_IRQN) ) infinite loop

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lpc55s28evk hspi ( EnableIRQ(FLEXCOMM8_FLEXCOMM_IRQN) ) infinite loop

718 Views
vi77
Contributor I

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.

0 Kudos
Reply
1 Reply

674 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

How about test the HSPI demo under SDK, and compare your code with demo code ?

 

BR

Alice

0 Kudos
Reply