Cannot use wiced_i2c_write?

brian's picture

I'm not sure where is the right place (wiced comunity or here) to ask programming problem, so I just post again this issue here.

I'm running will with WICED 4.0 SDK and 4343W starter kit, but when I add code to access I2C write, it shows the link error.

Message as follows, is there setting of environment or addition code need? Thank you! 

C:\Users\brian_chen\Documents\WICED\WICED-Studio-4.0\43xxx_Wi-Fi/WICED/platform/MCU/STM32F4xx/../wiced_platform_common.c:276: undefined reference to `platform_i2c_write'
tools/makefiles/ recipe for target 'build/demo.bc_I2C_sensor-BCM94343W_AVN/binary/demo.bc_I2C_sensor-BCM94343W_AVN.elf' failed
make.exe[1]: *** [build/demo.bc_I2C_sensor-BCM94343W_AVN/binary/demo.bc_I2C_sensor-BCM94343W_AVN.elf] Error 1
Makefile:308: recipe for target 'main_app' failed
make: *** [main_app] Error 2


PeterF's picture

wiced_i2c_write() to only be used for BCM4390x series. 
wiced_i2c_transfer() should be used for BCM4343W and all STM32 based platforms


Additional detail and examples available on WICED support forum:


I2C Interface For FXOS8700 on FRDM-STBC-AGM01