- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
it is possible add custom task to power sdk ( stack ) ?
it is possible run RTOS with power sdk ( stack )
my question above is because in my application i want build task which will be mgmt data transmit and receive from I2C master ? any for suggestion or recommendation design with power sdk
Solved! Go to Solution.
- Tags:
- i2c ccg3pa2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please note that RTOS cannot be added in Power SDK.
CCG3PA does not have flash to include RTOS.
Best Regards,
Mallika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The custom tasks can be implemented in the application layer provided you have flash available. However, it can't be added to the PD stack since the USB-PD stack is in the form of a pre-compiled library.
Similarly, RTOS can also not be added in the PD stack.
Can you please elaborate on your requirements and why would you like to add it in the stack?
Best Regards,
Mallika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have 2 units of cypd3175 one slave and one master
I want run task slave in one unit with queue of requested and task master on other unit I want sync with power sdk
Any advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please note that RTOS cannot be added in Power SDK.
CCG3PA does not have flash to include RTOS.
Best Regards,
Mallika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Free rtos size is 6-12 KB size it could be run on cortex m0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
Not sure about the PowerSDK, but in the Host SDK you have I2C master and slave code examples, I think you should be able to re-use some of that code and a free I2c block in the 24-pin version. Our only experience has been that on CCG4 there is very little free memory so we can't use the full SCB block. Look at the I2C implementation for controllering the alt-mode mux in the code base that Cypress has made.
Trying to add a third-party RTOS is not the way to go.
Cheers
Olof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
could me send path to project in host SDK where i could see how implement I2C in app callback it will be very helpful
could you sign one of the projects
it is very important to me implement i2c with callback otherwise i2c takes all CPU therefor USBC-PD does not operate correctly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
Check file datamux_ctrl.c,
PS8740_I2C_Read
PS8740_I2C_Write
plus some init and timeout functions. This is I2C master functions.
You also need to add the I2C block in the TopDesign.
/O
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for the info but my issue is : I2C slave
in my application i need implement I2C slave and I2C Master for the master i am familiar with examples like PS8740_I2C_Read PS8740_I2C_Write i will implement in this way but all issue begin challenge to implement I2C slave in order not use full SCB block additional to I2C master so i am looking for example with I2C salve similar architecture like PS8740
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i didnt find PS8740_I2C_Read in whole host sdk could you provide path for this example