Am working on S7G2-DK board .
I have a working project for ethernet and i have included SD card support then am getting many compilation eerrors
$e2_studio\workspace\IntegrationCode\synergy\ssp\inc\framework\el/fx_api.h:1202:47: error: conflicting types for '_fxe_file_attributes_read' #define fx_file_attributes_read _fxe_file_attributes_read ^$e2_studio\workspace\IntegrationCode\synergy\ssp_supplemental\filex_stub/filex_stub.h:115:13: note: in expansion of macro 'fx_file_attributes_read' UINT fx_file_attributes_read(FX_MEDIA *media_ptr, CHAR *file_name, UINT *attributes_ptr); ^$e2_studio\workspace\IntegrationCode\synergy\ssp\inc\framework\el/fx_api.h:1229:47: error: conflicting types for '_fxe_media_flush' #define fx_media_flush _fxe_media_flush ^$e2_studio\workspace\IntegrationCode\synergy\ssp_supplemental\filex_stub/filex_stub.h:129:13: note: in expansion of macro 'fx_media_flush'
please suggest , how to proceed
Thanks and Regards
In reply to adboc:
Hi Adboc, Netx HTTP server was using FileX Stub . When i remove FileX stub , i get the following errors ../src/synergy_gen/main_thread.c: In function 'http_server_init': ../src/synergy_gen/main_thread.c:48:101: error: 'SYNERGY_NOT_DEFINED' undeclared (first use in this function) g_http_server_err = nx_http_server_create (&g_http_server, "g_http_server HTTP Server", &g_ip, &SYNERGY_NOT_DEFINED, ^ src/synergy_gen/subdir.mk:33: recipe for target 'src/synergy_gen/main_thread.o' failed make: *** [src/synergy_gen/main_thread.o] Error 1 make: *** Waiting for unfinished jobs.... ../src/synergy_gen/sd_thread.c:38:6: error: redefinition of 'SYNERGY_NOT_DEFINED' VOID SYNERGY_NOT_DEFINED(VOID *cdc_instance) ^ ../src/synergy_gen/sd_thread.c:23:6: note: previous definition of 'SYNERGY_NOT_DEFINED' was here void SYNERGY_NOT_DEFINED(VOID *cdc_instance) ^ src/synergy_gen/subdir.mk:33: recipe for target 'src/synergy_gen/sd_thread.o' failed make: *** [src/synergy_gen/sd_thread.o] Error 1 12:35:49 Build Failed. 7 errors, 4 warnings. (took 3s.154ms) How to proceed with this Thanks and Regards Rizwan Syed
In reply to rizwan:
Thanks adboc for your reply.
I have two threads one with ethernet and other with SD card functionality.
I have added filex to my etherent thread.Still same issue is observed as mentioned at the starting of this thread.
I have attached my threads screenshot.Please have a look and let me know for your valuable suggestions
Thanks for your reply.
When i create g_fx_media0 FileX on Block Media instead of filex stub. then g_fx_media0 FileX on Block Media is created under ethernet thread.
and i will have one more sd thread with similar g_fx_media1 FileX on Block Media.( as shown in attached image)
DO i need to remove g_fx_media1 FileX on Block Media from sd thread and add required configuration in ethernet thread.Will it work.
I need to add some configurations for SD card to check read write functionality also.
Please check what am doing is correct
I've just done a simple project with two threads: one for NetX HTTP Server and the other for FileX on SDMMC. Here's how the main thread stacks look like finally:
At the beginning, FileX on Block Media instance should be created in SD Thread. Then add NetX HTTP to the main thread and select FileX instance from the first thread:
Actuallt ETH0 and SDHI0 both are using same pins.
As of now i have disabled SDHI0.
i have attached my SDMMC0 properties.
The above error is related to SDHI?