Part Number: LPSTK-CC1352R
Other Parts Discussed in Thread: OPT3001, HDC2010
Hi,
This is another bug report related to the LPSTK-1352R, using CC13x2_26x2 SDK 4.30.00.54. The multi_sensor example fails when imported into CCS10 and loaded onto the LPSTK. The failure occurs in the I2C transaction libraries, which are invoked by the OPT3001 and HDC2010 drivers. These drivers are linked in as prebuilt binaries, and from stepping through the disassembly it appears they were built against different versions of the I2C packet headers and so feed garbage headers into the I2C libraries, causing a crash.
To fix the issue, I stopped linking in the prebuilt binary by removing the following line from the .cproject file:
<listOptionValue builtIn="false" value="${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/source/ti/common/sail/library/ccs/cc1352r1/sail.lib"/>
Then I copied in the relevant source files (opt3001.c, opt3001.h, hdc2010.c, hdc2010.h) from SDK_PATH/source/ti/common/sail to the project to force them to build locally against the most recent I2C headers. This gave me a working multi_sensor project.
Hope this helps, thanks.