Combining two projects
-
- Member
- Posts: 10
- Joined: Fri Jan 29, 2016 10:00 pm
No it did not help. That's strange however, because that's how I got it to work. I can resend a zip file without the module_FatFs module if you would like?
-
- Active Member
- Posts: 55
- Joined: Fri Mar 04, 2011 3:38 pm
Hmm, which version of the tools are you using for this btw?
-
- Member
- Posts: 10
- Joined: Fri Jan 29, 2016 10:00 pm
I am using version Community_14.1.1
by the way here is a zipped folder without module_FatFs on the top level. However for some reason, it would only read in the ""ff.h" files on my version when I had it at the top level... Which is quite strange.
by the way here is a zipped folder without module_FatFs on the top level. However for some reason, it would only read in the ""ff.h" files on my version when I had it at the top level... Which is quite strange.
You do not have the required permissions to view the files attached to this post.
-
- Active Member
- Posts: 55
- Joined: Fri Mar 04, 2011 3:38 pm
Hi Tom,
I've been attempting to build this with the 14.1.2 tools.
When I run xmake in the AN00177_startKIT_adc_demo directory from the adc_task1.zip I get:
Once I got it to compile, the tools were unable to create a binary as SDCardHostSPI.xc contained recursion... I have just forked sc_sdcard (https://github.com/samchesney/sc_sdcard) and pushed a quick fix there for you, see https://github.com/samchesney/sc_sdcard ... a6a9ab8849. With this change I was able to build a binary successfully:
I hope this helps you progress your project.
Cheers,
Sam
I've been attempting to build this with the 14.1.2 tools.
When I run xmake in the AN00177_startKIT_adc_demo directory from the adc_task1.zip I get:
Removing the adc_task1/module_FatFs directory (to leave just the copy of module_FatFs within sc_sdcard) results in the tools downloading lib_startkit_support, and then the build failing with missing include files:$xmake
xmake[1]: *** adc_task1/module_FatFs: Is a directory. Stop.
xmake: *** [check_modules_msg] Error 2
Given these build issues I've gone back to the source in the data_collection.zip you attached earlier, and removed module_FatFs from the top level. I was seeing some strange build issues until I ran "xmake clean", but not the "Error: Undefined reference to '_Sadc_task_0'" you reported.$xmake
Checking build modules
Checking https://www.xmos.com for required libraries
Found version 3.0.1 of lib_startkit_support. Download [y/n]? y
Unzip to: adc_task1/AN00177_startKIT_adc_demo/./.. [y/n]? y
Using build modules: lib_startkit_support(3.0.1) module_FatFs sc_sdcard/module_sdcard4bit sc_sdcard/module_sdcardSPI
Analyzing capsens.xc
Analyzing slider.xc
Analyzing startkit_adc.xc
Analyzing startkit_gpio.xc
Analyzing startkit_slider.xc
Propagating analysis
WARNING: Include file ../../ADC/git/sc_sdcard/module_FatFs/src/ff.h missing
WARNING: Include file ../../ADC/git/sc_sdcard/module_FatFs/src/integer.h missing
WARNING: Include file ../../ADC/git/sc_sdcard/module_FatFs/src/ffconf.h missing
Analyzing tom.c
../tom.c:119:31: warning: format specifies type 'int' but the argument has type 'DWORD' (aka 'unsigned long') [-Wformat]
printf("%8d %s\n", fno.fsize, fno.fname);
~~~ ^~~~~~~~~
%8lu
1 warning generated.
WARNING: Include file ../../ADC/lib_startkit_support/api/startkit_gpio.h missing
WARNING: Include file ../../ADC/lib_startkit_support/api/startkit_slider.h missing
WARNING: Include file ../../ADC/lib_startkit_support/api/startkit_adc.h missing
WARNING: Include file ../../ADC/AN00177_startKIT_adc_demo/src/tom.h missing
Creating dependencies for main.xc
Creating dependencies for tom.c
Compiling main.xc
xmake: *** [bin//AN00177_startKIT_adc_demo.xe] Error 2
Once I got it to compile, the tools were unable to create a binary as SDCardHostSPI.xc contained recursion... I have just forked sc_sdcard (https://github.com/samchesney/sc_sdcard) and pushed a quick fix there for you, see https://github.com/samchesney/sc_sdcard ... a6a9ab8849. With this change I was able to build a binary successfully:
It might be worth checkout some of the other forks of sc_sdcard too, as it looks like some people have done a fair amount of work on it, but not opened pull requests to get it back into the main line unfortunately. Have a look at https://github.com/xcore/sc_sdcard/network and https://github.com/xcore/sc_sdcard/network/members for the other forks available.Creating AN00177_startKIT_adc_demo.xe
Constraint check for tile[0]:
Cores available: 8, used: 2 . OKAY
Timers available: 10, used: 3 . OKAY
Chanends available: 32, used: 6 . OKAY
Memory available: 65536, used: 45492 . OKAY
(Stack: 23064, Code: 20980, Data: 1448)
Constraints checks PASSED.
Build Complete
I hope this helps you progress your project.
Cheers,
Sam