Class to be able to send SPI data with almost no overhead, useful at very high speeds.

Dependents:   MakerBotServer epaper_mbed_130411_KL25Z epaper_mbed_test epaper_mbed_test_copy1 ... more

Issue: I ran into the following error when compiling. “‘_spi’ was not declared in this scope”

I ran into the following error when compiling a library called BurstSPI with VSCode's PlatformIO. This error does not occur with the mbed online compiler. Please tell me why it happens. Please tell me how to use _spi.

BurstSPI http://mbed.org/users/Sissors/code/BurstSPI/#bc069279eb37

Error `BurstSPI/BurstSPI_LPC_X.cpp:6:13: error: '_spi' was not declared in this scope`

Here is my platformio.ini setting

[env:lpc1768] platform = nxplpc@4.5.0 board = lpc1768 framework = mbed build_flags = -D PIO_FRAMEWORK_MBED_RTOS_PRESENT

2 comments:

03 Jan 2020

There was no problem if the platform of Platformio.ini was nxplpc@4.2.0, and it occurred in nxplpc@4.3.0. _spi seems to be unusable in mbed OS 5.12.3.

03 Jan 2020

_spi is part of the mbed core library. (Unless they changed something). If the error does not occur with the online compiler you either use a different version of mbed, or something is different in the build process. Since I am not familiar with PlatformIO I cannot help you with that.

If the issue is that a new mbed version broke something, then the problem is that I don't actively support these libaries anymore :). I am retired from mbed ;)