Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5024

SDK • Re: pico2040 cannot find I2C_NUM()

$
0
0
Yes, thanks. It seems like Arduino IDE package is messing with stuff. I used the same sdk to prevent throwing more mud in the water and keeping a means back to previous builds. I had this working on Teensy and I'd like to keep that option while editing the code.

Setting $PICO_SDK_PATH to a clean original download from Sept. I see same sort of stuff as you do :

Code:

 grep -Rn "I2C_NUM" $PICO_SDK_PATH/svn/pico-sdk/src/rp2_common/hardware_i2c/include/hardware/i2c.h:157: * \def I2C_NUM(i2c)/svn/pico-sdk/src/rp2_common/hardware_i2c/include/hardware/i2c.h:164:#ifndef I2C_NUM/svn/pico-sdk/src/rp2_common/hardware_i2c/include/hardware/i2c.h:166:#define I2C_NUM(i2c) ((i2c) == i2c1)/svn/pico-sdk/src/rp2_common/hardware_i2c/include/hardware/i2c.h:195:#define I2C_DREQ_NUM(i2c,is_tx) (DREQ_I2C0_TX + I2C_NUM(i2c) * 2 + !(is_tx))/svn/pico-sdk/src/rp2_common/hardware_i2c/include/hardware/i2c.h:206:    return I2C_NUM(i2c);/svn/pico-sdk/lib/btstack/port/esp32/components/btstack/es8388.h:230:    .i2c_port_num = I2C_NUM_0, \
, however the build still fails in exactly the same way.

I did

Code:

make clean && cmake .. &&  make
but I get exactly the same failure. :?

Statistics: Posted by pie_face — Tue Nov 26, 2024 11:38 am



Viewing all articles
Browse latest Browse all 5024

Trending Articles