Hi, I have downloaded the library with EFSL by M.Thomas, but i can't compile any examples in WinARM, because compiler shows this: Assembling (ARM-only): crt0.S arm-elf-gcc -c -mcpu=arm7tdmi-s -mthumb-interwork -I. -x assembler-with-cpp -DROM_RUN -Wa,-adhlns=crt0.lst,-gdwarf-2 crt0.S -o crt0.o Compiling C: main.c arm-elf-gcc -c -mthumb -mcpu=arm7tdmi-s -mthumb-interwork -I. -gdwarf-2 -DROM_RUN -Os -Wall -Wcast-align -Wcast-qual -Wimplicit -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=main.lst -I../../inc -I../../conf -MD -MP -MF .dep/main.o.d -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -std=gnu99 main.c -o main.o In file included from ../../inc/efs.h:37, from main.c:17: ../../inc/types.h:41:20: error: config.h: No such file or directory In file included from ../../inc/efs.h:39, from main.c:17: ../../inc/interface.h:50:3: error: #error "NO INTERFACE DEFINED - see interface.h" In file included from ../../inc/disc.h:41, from ../../inc/efs.h:40, from main.c:17: ../../inc/ioman.h:61: error: expected specifier-qualifier-list before 'hwInterface' ../../inc/ioman.h:100: error: expected declaration specifiers or '...' before 'hwInterface' In file included from main.c:17: ../../inc/efs.h:51: error: expected specifier-qualifier-list before 'hwInterface' In file included from main.c:18: ../../inc/ls.h:44: error: 'LIST_MAXLENFILENAME' undeclared here (not in a function) main.c: In function 'main': main.c:132: error: 'EmbeddedFileSystem' has no member named 'myFs' main.c:140: error: 'EmbeddedFileSystem' has no member named 'myFs' main.c:150: error: 'EmbeddedFileSystem' has no member named 'myFs' main.c:162: error: 'EmbeddedFileSystem' has no member named 'myFs' main.c:172: error: 'EmbeddedFileSystem' has no member named 'myFs' main.c:182: error: 'EmbeddedFileSystem' has no member named 'myPart' make: *** [main.o] Error 1 but there are fields myFs and myPart in structure EmbendedFileSystem please anybody help me :)
> Compiling C: main.c > arm-elf-gcc -c -mthumb -mcpu=arm7tdmi-s -mthumb-interwork -I. -gdwarf-2 > -DROM_RUN -Os -Wall -Wcast-align -Wcast-qual -Wimplicit > -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow > -Wunused -Wa,-adhlns=main.lst -I../../inc -I../../conf -MD -MP -MF > .dep/main.o.d -Wstrict-prototypes -Wmissing-declarations > -Wmissing-prototypes -Wnested-externs -std=gnu99 main.c -o main.o > In file included from ../../inc/efs.h:37, > from main.c:17: > ../../inc/types.h:41:20: error: config.h: No such file or directory > In file included from ../../inc/efs.h:39, > from main.c:17: you should correct the config.h file before trying to get the rest working. the compiler dosen't seem to be able to find config.h. I don't know why but you should check this at first. regards Jonathan
Jonathan Dumaresq wrote: >> Compiling C: main.c >> arm-elf-gcc -c -mthumb -mcpu=arm7tdmi-s -mthumb-interwork -I. -gdwarf-2 >> -DROM_RUN -Os -Wall -Wcast-align -Wcast-qual -Wimplicit >> -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow >> -Wunused -Wa,-adhlns=main.lst -I../../inc -I../../conf -MD -MP -MF >> .dep/main.o.d -Wstrict-prototypes -Wmissing-declarations >> -Wmissing-prototypes -Wnested-externs -std=gnu99 main.c -o main.o >> In file included from ../../inc/efs.h:37, >> from main.c:17: >> ../../inc/types.h:41:20: error: config.h: No such file or directory >> In file included from ../../inc/efs.h:39, >> from main.c:17: > > you should correct the config.h file before trying to get the rest > working. > > the compiler dosen't seem to be able to find config.h. I don't know why > but you should check this at first. There is no config.h in the package but several "templates" are provided for different targets in the config-directory. The easiest method is to copy one of the templates to a file named config.h in the same directory and modify the settings. IRC this is explained in the documenation (original pdf and my additional readme-file). BTW: the efsl has not been created by me. I have just implemented some of the SD/SPI backend-code for LPC2000 and AT91SAM7 (and others, but I'm still testing) and contributed some smaller extensions and fixes. Since the efsl-maintainers seem to be very busy and my changes have not been merged into the official release I temporarly provide a source-package with some updates and extended examples. Martin Thomas
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.