- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC Designer Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
InitLCD[3] does not exist. Highest index is [2]
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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