Build error, Warning

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

cross mob
Paa__3059096
Level 1
Level 1
5 sign-ins Welcome!

Iam new to PSOC1. The MCu is a CY8C28433 28 Pin. Under knes  is my question how may i solv the problem? Ilooked in the Comiler Dokumnet but there is no much answer about these.

!W C:\Users\Otto\DOCUME~1\PSOCDE~1.1PR\Wick\Wick\Wick\main.c(28):[warning] expression with no effect elided

!W C:\Users\Otto\DOCUME~1\PSOCDE~1.1PR\Wick\Wick\Wick\main.c(28):[warning] expression with no effect elided

!W C:\Users\Otto\DOCUME~1\PSOCDE~1.1PR\Wick\Wick\Wick\main.c(28):[warning] expression with no effect elided

!E C:\Users\Otto\DOCUME~1\PSOCDE~1.1PR\Wick\Wick\Wick\main.c(34): undeclared identifier `I2Cm_bStatus'

C:\PROGRA~2\Cypress\PSOCDE~1\5.1\Common\CY110F~1\tools\make: *** [obj/main.o] Error 1

Wick - 2 error(s) 3 warning(s) 12:46:02


  12 | static int InitLCD[3]; // Must global!! in main just bevor InitLCD gives build error


main ()

28 | InitLCD[3]=(0x00,0x3E,0x0E,0x06); How make this perfect working? Why can i not direct initialise

   for (i=0;i<=3;i++)

{

Data =InitLCD;

I2Cm_fWrite(Data);

34 | while (I2Cm_bStatus ==0); Export I2Cm_bstatus from i2Cm.asm

}

Thanks a lot in forward fore your concern

Paul

Nachricht geändert durch Paul a.d.F. Bruenen Thank you fore your help. I testet it today and when i put in Curved brackets i get 22 Errors! Igave in this code: I2Cm_Start();//0x06,0x0E,0x3E,0x00 InitLCD[4]=(0x00,0x3E,0x0E,0x06); I2Cm_fSendStart(0x74,I2Cm_WRITE); for (i=0;i<=3;i++) { Data =InitLCD; I2Cm_fWrite(Data); //while (I2Cm_bStatus ==0); } And hit two times Build Button and i get this: Starting MAKE... creating project.mk -- no changes Wick - 0 error(s) 0 warning(s) 06:48:38 But the I2C_bStatus will not rcognised by Compiler. Thanks a lot again paul

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

So what Bob-san mentioned was that

InitLCD[3] = { 0x00, 0x3E, 0x0E, 0x06 } ;

is wrong as there are 4 items instead of 3.

you need to write

InitLCD[4] = { 0x00, 0x3E, 0x0E, 0x06} ;

or

InitLCD[] = { 0x00, 0x3E, 0x0E, 0x06} ;

moto

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

InitLCD[3] does not exist. Highest index is [2]

Bob

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

So what Bob-san mentioned was that

InitLCD[3] = { 0x00, 0x3E, 0x0E, 0x06 } ;

is wrong as there are 4 items instead of 3.

you need to write

InitLCD[4] = { 0x00, 0x3E, 0x0E, 0x06} ;

or

InitLCD[] = { 0x00, 0x3E, 0x0E, 0x06} ;

moto

0 Likes