- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, rajath bhargav:
You had released the CCG2+NCP81239 car charger reference design source code to me around July, 18. My application has a MCU to control CCG2 and NCP81239 through CCG Host Processor Interface(HPI). My question is the source code you released to me include HPI or not ? I did not find relative files. How do I add HPI to the source code, or you can release me the source code include HPI? I already got HPI document through NDA flow. Thanks.
William Chen/ROIN Technology Co., Ltd.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi William,
By default, HPI in the source code is disabled, since CCG2 has a small flash and inclusion of HPI might leave less space for customization.
If you can optimize your code and include HPI, you can enable it in this location -
Firmware\SDK\CYPD2134-24LQXI_PA_NCP82139\CYPD2134-24LQXI_PA_NCP82139.cydsn\src\pd_common\usbpd.h
In the 'usbpd.h' file, you find this:
/* HPI Configuration
* HPI_SUPPORTED
* HPI_NOT_SUPPORTED
*/
#define HPI_CONFIGURATION (HPI_NOT_SUPPORTED)
You have to change (HPI_NOT_SUPPORTED) to (HPI_SUPPORTED)
After this you can build your application as before and program the device. Be sure to optimize the code and not run out of flash size.
Best regards,
Rajath