8 years, 11 months ago.

Possible to do non-blocking SPI transfers on these boards?

I see that the LPC1768 has a bit more comprehensive SPI library, with non-blocking methods for doing SPI transfers using buffers.

Is this something that is just not implemented on the this (or other nuclueo?) board(s)? Or is it a fundamental difference that the chip doesn't have the capability? I would think that the chip has interrupts for SPI transfers, right?

I noticed that my arch max board (STM32F407VET6) has the expanded mbed library with the non-blocking commands. Surely these chips are very similar?

Thanks

Question relating to:

Affordable and flexible platform to ease prototyping using a STM32F411RET6 microcontroller.

1 Answer

8 years, 11 months ago.

Are you sure the F407 has the non-blocking commands? If so then I am pretty certain yours should have them as well, you use for both the latest version?

In general, non-blocking interface has only be added very recently (last weeks), so most targets do not support it yet. Also something which I still have to test, but I have my doubts how much will be gained with non-blocking transfer if DMA is not used.

Edit: Quick search shows me only some Silicon Labs boards actually support it currently.

Ok yeah I see it is actually in the API docs if i make a new project or update the mbed libray, but "DEVICE_SPI_ASYNCH" is required and not defined anywhere for these boards.

Thanks for the replies

posted by Dave Thomas 13 May 2015