SPI1.transfer - multiple bytes does not work

Hi @mikemoy

You are running into a missing HAL layer problem that has been fixed in the develop branch. The real error reported by the web IDE (build button) is:

^
../../../build/target/wiring/platform-6-m//libwiring.a(spark_wiring_spi.o): In function `SPIClass::transfer(void*, void*, unsigned int, void (*)())':
/spark/compile_service/shared/workspace/6_photon_18_1/firmware/wiring/src/spark_wiring_spi.cpp:164: undefined reference to `HAL_SPI_DMA_Transfer'

I recognized this immediately from this thread:

So you can compile locally or wait for 0.4.6 for the fix.

1 Like