Big problem with EFSL by M. Thomas

OP #1172267
Rate this post
• ▲ useful
▼ not useful
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 :)
#1172268
Rate this post
• ▲ useful
▼ not useful
> 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
Guest #1172269
Rate this post
• ▲ useful
▼ not useful
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

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.