Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

VlYe_281166
New Contributor II

Hi, there 

I took for starting  PSoC3_SW_Sin_X and adapt it for CY8CKIT-059.

Packet  received by BCP has MSB always = 0 (it has to be 0x41) and received sin variable values are always = 40.

Other bytes are correct.
(Bytes 0x55 0x55 for serialplot sync)

For control I duplicate output values to UART and got correct results.

Pictures and archive applied.

0 Likes
3 Replies
VenkataD_41
Moderator
Moderator

Hi @VlYe_281166 

Please use the following if condition in the for loop and check once whether you are getting same error again:

if(0u == (EZI2C_EzI2CGetActivity() & EZI2C_STATUS_BUSY))

{

if(MyI2C_Regs.fSync > 0)
{
x += PI / 36;
MyI2C_Regs.sinValue = MyI2C_Regs.amplitude*sin (x);
MyI2C_Regs.fSync = 0;
UART_PutChar(0x55);
UART_PutChar(0x55);
UART_PutChar(sinAm[3]);
UART_PutChar(sinAm[2]);
UART_PutChar(sinAm[1]);
UART_PutChar(sinAm[0]);
}

}

 

0 Likes
VlYe_281166
New Contributor II

I'd like to, but:

main.c:75:11: warning: implicit declaration of function 'EZI2C_1_EzI2CGetActivity' [-Wimplicit-function-declaration]
if(0u == (EZI2C_1_EzI2CGetActivity() & EZI2C_1_STATUS_BUSY))
                  ^

main.c:75: undefined reference to `EZI2C_1_EzI2CGetActivity'

0 Likes
VlYe_281166
New Contributor II

With function: EZI2C_1_GetActivity code compiled, but the result is the same:

w 04+ 03+ r 04+ 00+ 08+ 91+ 9D+ p
w 04+ 01+ 00+ 14+ p
w 04+ 00+ 01+ p
w 04+ 03+ r 04+ 00+ 48+ 8B+ 9A+ p
w 04+ 01+ 00+ 14+ p
w 04+ 00+ 01+ p
w 04+ 03+ r 04+ 00+ 6E+ 58+ 96+ p

0 Likes