platform-raspberrypi: undefined reference to `i2c_start' when trying to use mbed I2C
Hi!
I am having problems with using the event based implementation in wire.h, mainly I have problems getting the slave/peripheral on an Raspberry Pi Pico W (Arduino) replying to the ESP32 master/controllers request. All other directions work but that doesn’t. Also the interrupt-event-based implementation makes the timing difficult and a more generalized implementation messy.
So now I am trying to use the mbed I2C/I2Cslave implementation which seems quite nifty (no sure what Wire.h actually brings except from the interrupt-events and some minor abstractions) but something seem to be missing.
I am getting this error when building:
/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /.platformio/packages/framework-arduino-mbed/variants/RASPBERRY_PI_PICO/libs/libmbed.a(I2C.o): in function `mbed::I2C::start()':
I2C.cpp:(.text._ZN4mbed3I2C5startEv+0xc): undefined reference to `i2c_start'
Any ideas?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (9 by maintainers)
Let me double check mbed, because I know there was https://github.com/platformio/platformio-core/issues/3980.
With the Arduino-Pico core, which is the entire point of this repo, it works without problems when you wait for Serial connection to be established
Just create
test/test_embedded/test_example.cppper