Cannot use wiced_i2c_write?

Solved
brian's picture
brian
Junior(0)

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/wiced_elf.mk:262: 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
PeterF
Moderator(16)

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:
 

https://community.cypress.com/message/31942#31942

 

I2C Interface For FXOS8700 on FRDM-STBC-AGM01