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

PSoC™ 6 SDK Forum Discussions

tayo
Level 5
Level 5
250 sign-ins 50 replies posted 25 replies posted

Hello Infineon support team.

I'm evaluating I2C master using following environment.
- EVB: CY8CKIT-062S2-43012
- Tool: Modus ToolBox version 2.4.0
- Template App: I2C Master

By default, mtb-hal-cat1 version is 1.6.0. I can see an expected I2C behavior.
However, if mtb-hal-cat1 version is 2.0.1, I2C does not work fine. The "handle_error()" code is called because all buffer[] are "0" value.

=========
<main.c>
Line 285:
/* Check packet structure and status */
if ((PACKET_SOP == buffer[PACKET_SOP_POS]) &&
(PACKET_EOP == buffer[PACKET_EOP_POS]) &&
(STS_CMD_DONE == buffer[PACKET_CMD_POS]))
{
/* Next command to be written. */
cmd = (cmd == CYBSP_LED_STATE_ON) ?
CYBSP_LED_STATE_OFF : CYBSP_LED_STATE_ON;
}
else
{
handle_error();        ★★ Called this code if mtb-hal-cat1 version 2.0.1.
}
==========

Can I have your any advice to fix this issue?

Thanks,
Tayo

0 Likes
1 Solution
ncbs
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted
0 Likes
1 Reply
ncbs
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi @tayo,

Please refer to the following community thread: https://community.infineon.com/t5/PSoC-6-SDK/I2C-Master-using-mtb-hal-cat1-version-2-0-1/td-p/331563

Thanks and regards,
Nikhil

0 Likes