lpc55s28evk hspi ( EnableIRQ(FLEXCOMM8_FLEXCOMM_IRQN) ) infinite loop

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

lpc55s28evk hspi ( EnableIRQ(FLEXCOMM8_FLEXCOMM_IRQN) ) infinite loop

705 次查看
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 项奖励
回复
1 回复

661 次查看
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 项奖励
回复