Other Parts Discussed in Thread: SYSCONFIG
Hi,
Is there any I2C example for MSP432 to communicate with this HDC2010 sensor and get the data.
Any re-usable code will be helpful.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Tajpeer,
The Sysconfig tool on dev.ti.com provides example code for HDC2010. We are working on full integration of Sysconfig into Code Composer Studio, and it will be available this year. For now, please have a look at:
https://dev.ti.com/sysconfig/index.html?product=ascstudio&module=/ti/sensors/humiditysensor/HDC2010
edit: it looks like the feature is already available: http://software-dl.ti.com/ccs/esd/documents/ccs_sysconfig_projects.html
if you need further support with CCS or SysConfig, it would be best to redirect your question to that team. Let me know if you would like me to do so.
thanks,
ren
Hi Ren,
Thanks for the detailed information.
I have tried to open my sysconfig tool from an empty project to add this HDC2010 sensor driver to our project. But couldn't able to see any references of HDC2010 in my sysconfig file.
I am wondering the sysconfig project details u sent to me like below link. Is there any specific CCS version with which I can directly add HDC2010 as a module to my project?
https://dev.ti.com/sysconfig/index.html?product=ascstudio&module=/ti/sensors/humiditysensor/HDC2010
You can download the files at the link and drop them into your project. You would have to fill in the mcu.c file for your MCU's I2C peripheral. This would be completed for you in the version of Sysconfig which ties into CCS.
I'll tag the CCS team and see if they can help you. This feature may not be completely rolled out yet.
thanks,
ren
Tajpeer,
For the time being you are going to have to follow ren's suggestions. However, we are currently working on making the integration between SimpleLink SDK SysConfig and Sensors Sysconfig better. Soon we'll have support to be able to configure and use HDC2010 directly from a SDK example project. This will also automatically generate a mcu.c using TI-Drivers I2C drivers.
Regards,
Mandeep
Thanks for the update.
May I know when can we expect the integration of HDC2010 into Simplelink SDK including mcu.c changes?
Tajpeer -
You can use the SAIL plugin with SimpleLink SDK for this - its what you want (I think) :)
http://dev.ti.com/tirex/explore/node?node=AEbrZw8VUCRVftxrg-UI1A__swcUKHN__LATEST
Hi Josh,
Actually, I am looking for the below function definitions for MSP432P401R in mcu.c as Ren shared the sysconfig file. Any example function definitions for the below 2 functions will help.
/********* MCU SPECIFIC I2C CODE STARTS HERE**********/
void mcu_i2cInit(uint8_t busId)
{
/* Add MCU specific init necessary for I2C to be used */
}
int8_t mcu_i2cTransfer( uint8_t busId, uint8_t i2cAddr, uint8_t *dataToWrite, uint8_t writeLength, uint8_t *dataToRead, uint8_t readLength)
{
/*
* Add MCU specific I2C read/write code here.
*/
/*
* Add MCU specific return code for error handling
*/
return (0);
}
Dear Tajpeer -
If you just use the SAIL plugin, with the MSP432SDK, you don't need what the ascstudio produces at this time. For understanding, the output files of the ascstudio are mcu agnostic.
In this case, since you already know the MCU, and there is working example ready in TI-REX , you can just use it now.
How to link the SAIL plugin with MSP432SDK.
I have downloaded the project but due to SAIL plugin, I am not able to build it.
Can you please help.