Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB EZ-PD™ Type-C Forum Discussions

Danio_A
Level 1
Level 1
5 replies posted 10 sign-ins 5 likes given

Hi Mohamed Rahmathulla,

Thank you for your answer. 

Thanks a lot for successfully solving the above problems under your guidance.

At present, I need to implement a firmware update function. Through reading the document, I have learned about bootlader and Bootloadable. Can I upgrade firmware through IIC only by using bootloader?

If so, which routine should I refer to to implement this part of the function?

 

Also, I encountered this error while compiling the official routine, and I don't know how to solve it.

企业微信截图_1671176816696.png

Thank you again, you're really great.

Thanks & Regards

Danio

 

 

0 Likes
1 Solution
HmdRahmathulla
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 10 solutions authored

Hi Danio, 

  CCG4 will support I2C bootloader and you can find the I2C boot files inside the notebook project.

worksapce folder\CYPD4226-40LQXI_notebook\CYPD4226-40LQXI_notebook.cydsn\i2c_boot.cydsn

if you are planning have dual partition for the firmware, you can update the firmware using the other firmware.

else, programs get into bootloader to upgrade the firmware (I2C bootloader).

Thanks & Regards

Mohamed Rahmathulla

 

View solution in original post

6 Replies
HmdRahmathulla
Moderator
Moderator
Moderator
50 replies posted 50 sign-ins 10 solutions authored

Hi Danio, 

  CCG4 will support I2C bootloader and you can find the I2C boot files inside the notebook project.

worksapce folder\CYPD4226-40LQXI_notebook\CYPD4226-40LQXI_notebook.cydsn\i2c_boot.cydsn

if you are planning have dual partition for the firmware, you can update the firmware using the other firmware.

else, programs get into bootloader to upgrade the firmware (I2C bootloader).

Thanks & Regards

Mohamed Rahmathulla

 

Hi Mohamed Rahmathulla,

Thank you for your answer. 

According to your instructions, I use this routine, but can not find the slave device (HPI_IF), do you know what the reason is?

Thanks & Regards

Mohamed Rahmathulla

 

 

0 Likes

Hi Danio,

You will get the I2C slave address in the project TopDesign.cysch.

open the HPI_IF block to get the slave address which i have highlighted below.

HmdRahmathulla_0-1671441283094.png

 

Thanks & Regards

Mohamed Rahmathulla

 

Hi Mohamed Rahmathulla,

Thank you for your guidance.

In the process of debugging found that I write, read error occurred... Therefore, I would like to confirm the following.

After I write the (0x38) packet as described in the manual, will the component of the PSoC reply with a packet correct?

Danio_A_1-1671504421626.png

Thanks & Regards

Danio

 

 

0 Likes

Hi Danio,

Sorry for the delay,

Could you please let me know the document which you are referring and mentioned above.

what is the error which you are getting while communicating through i2c?

did you got ack while sending the address? 

 

Thanks & Regards

Mohamed Rahmathulla

0 Likes

Hi Mohamed Rahmathulla,

I have successfully solved the problem of appeal, and the execution of CYPD4226 is normal. Thank you for your answering questions these days.

Thank you very much. You're the best.
Thanks & Regards

 

Danio

 

0 Likes