Genius or desperation? There’s a fine line :P
Wiping the existing files and then copying didn’t work, the terminal tried to reaquire them.
Copying on top has resulted in a list of errors.
I’m off to dinner, but I’ll leave the error dump here:
Processing lpc11u68 (platform: nxplpc; board: lpc11u68; framework: mbed)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: NXP LPC > LPCXpresso11U68
SYSTEM: LPC11U68 50MHz 36KB RAM (256KB Flash)
DEBUG: CURRENT(cmsis-dap) ON-BOARD(cmsis-dap) EXTERNAL(blackmagic, jlink)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 17 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Pokitto>
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\AnalogIn.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\BusIn.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\BusInOut.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\BusOut.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\CAN.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\Ethernet.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\I2C.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\I2CSlave.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\InterruptIn.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\RawSerial.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\SPI.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\SPISlave.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\Serial.o
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\SerialBase.o
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SPI.cpp: In constructor 'mbed::SPI::SPI(PinName, PinName, PinName, PinName)':
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SPI.cpp:41:21: error: 'SPI_FILL_CHAR' was not declared in this scope
_write_fill(SPI_FILL_CHAR) {
^~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SPI.cpp:41:21: note: suggested alternative: 'SPI_FILL_WORD'
_write_fill(SPI_FILL_CHAR) {
^~~~~~~~~~~~~
SPI_FILL_WORD
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SPI.cpp: In member function 'virtual int mbed::SPI::write(const char*, int, char*, int)':
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SPI.cpp:111:15: error: 'spi_master_block_write' was not declared in this scope
int ret = spi_master_block_write(&_spi, tx_buffer, tx_length, rx_buffer, rx_length, _write_fill);
^~~~~~~~~~~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SPI.cpp:111:15: note: suggested alternative: 'spi_master_write'
int ret = spi_master_block_write(&_spi, tx_buffer, tx_length, rx_buffer, rx_length, _write_fill);
^~~~~~~~~~~~~~~~~~~~~~
spi_master_write
Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\Ticker.o
*** [.pioenvs\lpc11u68\FrameworkMbedCore\drivers\SPI.o] Error 1Compiling .pioenvs\lpc11u68\FrameworkMbedCore\drivers\Timeout.o
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:19:0,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/TimerEvent.h:71:26: error: 'us_timestamp_t' has not been declared
void insert_absolute(us_timestamp_t timestamp);
^~~~~~~~~~~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SerialBase.cpp:19:0:
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h: In function 'void sleep()':
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:158:20: error: 'void sleep()' was declared 'extern' and later 'static' [-fpermissive]
static inline void sleep(void)
^~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:26:0,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SerialBase.cpp:19:
C:\users\Pharap\.platformio\packages\framework-mbed\hal/sleep_api.h:41:6: note: previous declaration of 'void sleep()'
void sleep(void);
^~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SerialBase.cpp:19:0:
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h: In function 'void deepsleep()':
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:191:20: error: 'void deepsleep()' was declared 'extern' and later 'static' [-fpermissive]
static inline void deepsleep(void)
^~~~~~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:26:0,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\SerialBase.cpp:19:
C:\users\Pharap\.platformio\packages\framework-mbed\hal/sleep_api.h:56:6: note: previous declaration of 'void deepsleep()'
void deepsleep(void);
^~~~~~~~~
*** [.pioenvs\lpc11u68\FrameworkMbedCore\drivers\SerialBase.o] Error 1
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:19:0,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Timeout.h:19,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Timeout.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/TimerEvent.h:71:26: error: 'us_timestamp_t' has not been declared
void insert_absolute(us_timestamp_t timestamp);
^~~~~~~~~~~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:23:0,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h: In function 'void sleep()':
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:158:20: error: 'void sleep()' was declared 'extern' and later 'static' [-fpermissive]
static inline void sleep(void)
^~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:26:0,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:23,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed\hal/sleep_api.h:41:6: note: previous declaration of 'void sleep()'
void sleep(void);
^~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:23:0,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h: In function 'void deepsleep()':
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:191:20: error: 'void deepsleep()' was declared 'extern' and later 'static' [-fpermissive]
static inline void deepsleep(void)
^~~~~~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:26:0,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:23,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed\hal/sleep_api.h:56:6: note: previous declaration of 'void deepsleep()'
void deepsleep(void);
^~~~~~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:16:0:
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h: At global scope:
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:115:43: error: 'us_timestamp_t' has not been declared
void attach_us(Callback<void()> func, us_timestamp_t t) {
^~~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:139:38: error: 'us_timestamp_t' has not been declared
void attach_us(T *obj, M method, us_timestamp_t t) {
^~~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:152:16: error: 'us_timestamp_t' has not been declared
void setup(us_timestamp_t t);
^~~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:156:5: error: 'us_timestamp_t' does not name a type; did you mean 'timestamp_t'?
us_timestamp_t _delay; /**< Time delay (in microseconds) for re-setting the multi-shot callback. */
^~~~~~~~~~~~~~
timestamp_t
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:37:20: error: variable or field 'setup' declared void
void Ticker::setup(us_timestamp_t t) {
^~~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:37:20: error: 'us_timestamp_t' was not declared in this scope
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:37:20: note: suggested alternative: 'timestamp_t'
void Ticker::setup(us_timestamp_t t) {
^~~~~~~~~~~~~~
timestamp_t
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp: In member function 'virtual void mbed::Ticker::handler()':
C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Ticker.cpp:46:39: error: '_delay' was not declared in this scope
insert_absolute(event.timestamp + _delay);
^~~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:23:0,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Timeout.h:19,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Timeout.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h: In function 'void sleep()':
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:158:20: error: 'void sleep()' was declared 'extern' and later 'static' [-fpermissive]
static inline void sleep(void)
^~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:26:0,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:23,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Timeout.h:19,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Timeout.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed\hal/sleep_api.h:41:6: note: previous declaration of 'void sleep()'
void sleep(void);
^~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:23:0,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Timeout.h:19,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Timeout.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h: In function 'void deepsleep()':
C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:191:20: error: 'void deepsleep()' was declared 'extern' and later 'static' [-fpermissive]
static inline void deepsleep(void)
^~~~~~~~~
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/platform/mbed_power_mgmt.h:26:0,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:23,
from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Timeout.h:19,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Timeout.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed\hal/sleep_api.h:56:6: note: previous declaration of 'void deepsleep()'
void deepsleep(void);
^~~~~~~~~
*** [.pioenvs\lpc11u68\FrameworkMbedCore\drivers\Ticker.o] Error 1
In file included from C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Timeout.h:19:0,
from C:\users\Pharap\.platformio\packages\framework-mbed\drivers\Timeout.cpp:16:
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h: At global scope:
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:115:43: error: 'us_timestamp_t' has not been declared
void attach_us(Callback<void()> func, us_timestamp_t t) {
^~~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:139:38: error: 'us_timestamp_t' has not been declared
void attach_us(T *obj, M method, us_timestamp_t t) {
^~~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:152:16: error: 'us_timestamp_t' has not been declared
void setup(us_timestamp_t t);
^~~~~~~~~~~~~~
C:\users\Pharap\.platformio\packages\framework-mbed/drivers/Ticker.h:156:5: error: 'us_timestamp_t' does not name a type; did you mean 'timestamp_t'?
us_timestamp_t _delay; /**< Time delay (in microseconds) for re-setting the multi-shot callback. */
^~~~~~~~~~~~~~
timestamp_t
*** [.pioenvs\lpc11u68\FrameworkMbedCore\drivers\Timeout.o] Error 1