lpc55s28evk hspi ( EnableIRQ(FLEXCOMM8_FLEXCOMM_IRQN) ) infinite loop

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

lpc55s28evk hspi ( EnableIRQ(FLEXCOMM8_FLEXCOMM_IRQN) ) infinite loop

723件の閲覧回数
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 返信

679件の閲覧回数
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 件の賞賛
返信