How to configure SPI using SDK?

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

How to configure SPI using SDK?

838 Views
张松张
Contributor I

I use the SDK to configure the SPI module on MPC5744, and when I am debug, no source available for "SWT0 IRQHandler () at 0x1002c08" appears, but I don't know why, does anyone know? Is it watchdog overtime?

But I do it with an example, using DSPI_MasterTransferBlocking (SPI3_INSTANCE, &EEPROM_CMD_WREN, NULL, 81000) function.

Tags (3)
0 Kudos
2 Replies

594 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi

I would suggest you refer to the spi demo under the SDK installation folder for how to configure spi master and spi slave. There are 4 demos.

Please also refer to MCUXpresso SDK API Reference Manual, chapter 11 DSPI for more details

FRDM-K66F_2.4.0\boards\frdmk66f\driver_examples\dspi\

Regards

Daniel

0 Kudos

594 Views
张松张
Contributor I

Thank you for your reply. I just followed the example, but debug will report the no source available for "SWT0 IRQHandler () at 0x1002c08" failure when calling the DSPIID MasterTransferBlocking function. I would like to know the cause and the solution, and look forward to your reply again.

0 Kudos