January 09, 2011
by TonyPat
|
Hi,
I can compile and run the Ledarray.c test lesson in Ledarray_test directory but I cannot compile the Ledarray.c in the Ledarray_educational after modify the .c file, following is the capture of the error, please help, note that I edit the makefile in both directories the same for using the Atmel328 device.
It looks like the #include staments do not point to the right section, very strange because the ledarray_test directory and ledarray_educational directory are at the same level under subdirectory C:UsersHongDocumentsLearningNerdkitCodeCode\
Could somebody help.
Thanks
C:UsersHongDocumentsLearningNerdkitCodeCodeledarray_educational>make
make -C ../libnerdkits
make[1]: Entering directory C:/Users/Hong/Documents/Learning/Nerdkit/Code/Code/
libnerdkits'
make[1]: Nothing to be done for all'.
make[1]: Leaving directory `C:/Users/Hong/Documents/Learning/Nerdkit/Code/Code/l
ibnerdkits'
avr-gcc -g -Os -Wall -mmcu=atmega328p -Wl,-u,vfprintf -lprintf_flt -Wl,-u,vfscan
f -lscanf_flt -lm -o ledarray.o ledarray.c ../libnerdkits/delay.o ../libnerdkits
/lcd.o ../libnerdkits/uart.o
ledarray.c:14:36: error: ../libnerdkits/io_328p.h: No such file or directory
ledarray.c: In function 'ledarray_set_columndriver':
ledarray.c:72: error: 'PC0' undeclared (first use in this function)
ledarray.c:72: error: (Each undeclared identifier is reported only once
ledarray.c:72: error: for each function it appears in.)
ledarray.c:85: error: 'PD2' undeclared (first use in this function)
ledarray.c: In function 'ledarray_all_off':
ledarray.c:102: error: 'PB1' undeclared (first use in this function)
ledarray.c:102: error: 'PB2' undeclared (first use in this function)
ledarray.c:102: error: 'PB3' undeclared (first use in this function)
ledarray.c:102: error: 'PB4' undeclared (first use in this function)
ledarray.c:102: error: 'PB5' undeclared (first use in this function)
ledarray.c:106: error: 'PC1' undeclared (first use in this function)
ledarray.c:106: error: 'PC2' undeclared (first use in this function)
ledarray.c:106: error: 'PC3' undeclared (first use in this function)
ledarray.c:106: error: 'PC4' undeclared (first use in this function)
ledarray.c:106: error: 'PC5' undeclared (first use in this function)
ledarray.c:108: error: 'PD3' undeclared (first use in this function)
ledarray.c:108: error: 'PD4' undeclared (first use in this function)
ledarray.c:108: error: 'PD5' undeclared (first use in this function)
ledarray.c:108: error: 'PD6' undeclared (first use in this function)
ledarray.c:108: error: 'PD7' undeclared (first use in this function)
ledarray.c: In function 'ledarray_set_columndriver':
ledarray.c:112: warning: 'SIG_OVERFLOW0' appears to be a misspelled signal handl
er
ledarray.c:112: error: static declaration of 'SIG_OVERFLOW0' follows non-static
declaration
ledarray.c:112: error: previous declaration of 'SIG_OVERFLOW0' was here
ledarray.c: In function 'SIG_OVERFLOW0':
ledarray.c:115: error: 'PB1' undeclared (first use in this function)
ledarray.c: In function 'ledarray_init':
ledarray.c:156: error: 'PC1' undeclared (first use in this function)
ledarray.c:156: error: 'PC2' undeclared (first use in this function)
ledarray.c:156: error: 'PC3' undeclared (first use in this function)
ledarray.c:156: error: 'PC4' undeclared (first use in this function)
ledarray.c:156: error: 'PC5' undeclared (first use in this function)
ledarray.c:157: error: 'PD3' undeclared (first use in this function)
ledarray.c:157: error: 'PD4' undeclared (first use in this function)
ledarray.c:157: error: 'PD5' undeclared (first use in this function)
ledarray.c:157: error: 'PD6' undeclared (first use in this function)
ledarray.c:157: error: 'PD7' undeclared (first use in this function)
ledarray.c:158: error: 'PB1' undeclared (first use in this function)
ledarray.c:158: error: 'PB2' undeclared (first use in this function)
ledarray.c:158: error: 'PB3' undeclared (first use in this function)
ledarray.c:158: error: 'PB4' undeclared (first use in this function)
ledarray.c:158: error: 'PB5' undeclared (first use in this function)
ledarray.c: In function 'ledarray_set_columndriver':
ledarray.c:317: warning: 'main' is normally a non-static function
ledarray.c:332: error: expected declaration or statement at end of input
make: *** [ledarray.hex] Error 1
C:UsersHongDocumentsLearningNerdkitCodeCodeledarray_educational> |
January 09, 2011
by mrobbins
(NerdKits Staff)
|
Hi TonyPat,
As mentioned in the "ATmega328P Upgrade Nano-Guide", please download this file and place it in your libnerdkits directory. Then try running "make" again.
Mike |
January 09, 2011
by TonyPat
|
Hi Mike,
Thank you very much for the info, and fast response, now I can compile the program, and now could you give me the link to ATmea328P Upgrade Nano-Guide.
Thanks and have a nice day |
January 09, 2011
by Rick_S
|
Check the member download area. |
January 09, 2011
by TonyPat
|
Thank you very much Rick, I got it.
Have a nice day |