- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try the example project - emfile_example
I use - PSoc creator 3.0
When I try to build the program (before do any change to code)
I get the following output:
Log file for this session is located at: C:\Users\User\AppData\Local\Temp\PSoC Creator-000.log
--------------- Build Started: 12/23/2014 12:35:10 Project: emFile_Example01, Configuration: DP8051 Keil 9.51 Debug ---------------
cydsfit.exe "-.appdatapath" "C:\Users\User\AppData\Local\Cypress Semiconductor\PSoC Creator\3.0" "-.fdsnotice" "-.fdswarpdepfile=warp_dependencies.txt" "-.fdselabdepfile=elab_dependencies.txt" "-.fdsbldfile=generated_files.txt" "-p" "C:\Users\User\Dropbox\PSoC Creator\Design01\emFile_Example01.cydsn\emFile_Example01.cyprj" "-d" "CY8C3866AXI-040" "-s" "C:\Users\User\Dropbox\PSoC Creator\Design01\emFile_Example01.cydsn\Generated_Source\PSoC3" "--" "-yv2" "-v3" "-ygs" "-q10" "-o2" "-.fftcfgtype=BE"
Elaborating Design...
HDL Generation ...
Synthesis ...
Place and Route ...
Tech mapping ...
Info: mpr.M0037: Unused pieces of the design have been optimized out. See the Tech mapping section of the report file for details. (App=cydsfit)
Analog Placement ...
Analog Routing ...
Analog Code Generation ...
Digital Placement ...
Digital Routing ...
Bitstream Generation ...
Static timing analysis ...
API Generation ...
Dependency Generation ...
Clean Temporary Files ...
c51.exe .\main.c NOIV LARGE MODDP2 OMF2 VB(1) PR(.\DP8051\DP8051_Keil_951\Debug\main.lst) CD DB NOIP "OT(2, Size)" "INCDIR(., .\Generated_Source\PSoC3)" OJ(.\DP8051\DP8051_Keil_951\Debug\main.obj)
WARNING: .\Generated_Source\PSoC3\emFile.h:23: can't open file 'MMC_X_HW.h'
WARNING: .\main.c:32: can't open file 'FS.h'
WARNING: .\main.c:34: can't open file 'Global.h'
ERROR: .\main.c:40: syntax error near 'step', expected ')'
ERROR: .\main.c:50: 'step': undefined identifier
ERROR: .\main.c:52: 'str': undefined identifier
ERROR: .\main.c:64: 'U16': undefined identifier
ERROR: .\main.c:64: syntax error near 'step'
ERROR: .\main.c:65: 'FS_FILE': undefined identifier
The command 'c51.exe' failed with exit code '2'.
--------------- Build Failed: 12/23/2014 12:35:38 ---------------
--------------- Build Started: 12/23/2014 12:36:34 Project: emFile_Example01, Configuration: DP8051 Keil 9.51 Debug ---------------
The code generation step is up to date.
c51.exe .\main.c NOIV LARGE MODDP2 OMF2 VB(1) PR(.\DP8051\DP8051_Keil_951\Debug\main.lst) CD DB NOIP "OT(2, Size)" "INCDIR(., .\Generated_Source\PSoC3)" OJ(.\DP8051\DP8051_Keil_951\Debug\main.obj)
WARNING: .\Generated_Source\PSoC3\emFile.h:23: can't open file 'MMC_X_HW.h'
WARNING: .\main.c:32: can't open file 'FS.h'
WARNING: .\main.c:34: can't open file 'Global.h'
ERROR: .\main.c:40: syntax error near 'step', expected ')'
ERROR: .\main.c:50: 'step': undefined identifier
ERROR: .\main.c:52: 'str': undefined identifier
ERROR: .\main.c:64: 'U16': undefined identifier
ERROR: .\main.c:64: syntax error near 'step'
ERROR: .\main.c:65: 'FS_FILE': undefined identifier
The command 'c51.exe' failed with exit code '2'.
--------------- Build Failed: 12/23/2014 12:36:35 ---------------
--------------- Build Started: 12/23/2014 13:00:11 Project: emFile_Example02, Configuration: DP8051 Keil 9.51 Debug ---------------
cydsfit.exe "-.appdatapath" "C:\Users\User\AppData\Local\Cypress Semiconductor\PSoC Creator\3.0" "-.fdsnotice" "-.fdswarpdepfile=warp_dependencies.txt" "-.fdselabdepfile=elab_dependencies.txt" "-.fdsbldfile=generated_files.txt" "-p" "C:\Users\User\Dropbox\PSoC Creator\Design01\emFile_Example02.cydsn\emFile_Example02.cyprj" "-d" "CY8C3866AXI-040" "-s" "C:\Users\User\Dropbox\PSoC Creator\Design01\emFile_Example02.cydsn\Generated_Source\PSoC3" "--" "-yv2" "-v3" "-ygs" "-q10" "-o2" "-.fftcfgtype=BE"
Elaborating Design...
HDL Generation ...
Synthesis ...
Place and Route ...
Tech mapping ...
Info: mpr.M0037: Unused pieces of the design have been optimized out. See the Tech mapping section of the report file for details. (App=cydsfit)
Analog Placement ...
Analog Routing ...
Analog Code Generation ...
Digital Placement ...
Digital Routing ...
Bitstream Generation ...
Static timing analysis ...
API Generation ...
Dependency Generation ...
Clean Temporary Files ...
c51.exe .\main.c NOIV LARGE MODDP2 OMF2 VB(1) PR(.\DP8051\DP8051_Keil_951\Debug\main.lst) CD DB NOIP "OT(2, Size)" "INCDIR(., .\Generated_Source\PSoC3)" OJ(.\DP8051\DP8051_Keil_951\Debug\main.obj)
WARNING: .\Generated_Source\PSoC3\emFile.h:23: can't open file 'MMC_X_HW.h'
WARNING: .\main.c:32: can't open file 'FS.h'
WARNING: .\main.c:34: can't open file 'Global.h'
ERROR: .\main.c:40: syntax error near 'step', expected ')'
ERROR: .\main.c:50: 'step': undefined identifier
ERROR: .\main.c:52: 'str': undefined identifier
ERROR: .\main.c:64: 'U16': undefined identifier
ERROR: .\main.c:64: syntax error near 'step'
ERROR: .\main.c:65: 'FS_FILE': undefined identifier
The command 'c51.exe' failed with exit code '2'.
--------------- Build Failed: 12/23/2014 13:00:41 ---------------
Warning: prj.M0213: A build is required before the project 'emFile_Example02' can be exported. Would you like to build and continue with the export now?
NO
Yoni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is about looking at the very first error in main.c at line 40?
Additionally it is advisable to upload your complete project here so that we all can have a look at to help you. To do so, use
Creator->File->Create Workspace Bundle
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you follow the instructions in emFile datasheet to add the additional libraries
for the compiler and the linker. I just did this and achieved a successful
compile/link.
Regards, Dana.