Karol,
In an attempt to recreate your demo, I followed the steps outlined. However, as long as I bring in FileX via the threads tab in the configurator, I get compile errors. It's not until I remove that block and simply go to components and check the fx box that the errors go away. The errors are numerous but here's the first one:
In file included from ../src/synergy_gen/FileXOnUSBX.c:2:0:
../src/synergy_gen/FileXOnUSBX.h:15:5: error: unknown type name 'sf_el_fx_t'
Here is the content of the .h
/* generated thread header file - do not edit */
#ifndef FILEXONUSBX_H_
#define FILEXONUSBX_H_
#include "bsp_api.h"
#include "tx_api.h"
#include "hal_data.h"
void FileXOnUSBX_entry(void);
#include "fx_api.h"
extern FX_MEDIA g_fx_media1;
/** Block Media Format Type */
typedef struct st_sf_block_media_format
{
FX_MEDIA * p_fx_media;
sf_el_fx_t * p_driver_info;
uint8_t * p_memory;
uint32_t memory_size;
int8_t * volume_name;
uint32_t number_of_fats;
uint32_t directory_entries;
uint32_t hidden_sectors;
uint32_t total_sectors;
uint32_t bytes_per_sector;
uint32_t sectors_per_cluster;
} sf_block_media_format_t;
#endif /* FILEXONUSBX_H_ */
When I remove the FileX box from the threads tab and just make sure fx is checked in the components tab, this is the contents of the file:
/* generated thread header file - do not edit */
#ifndef FILEXONUSBX_H_
#define FILEXONUSBX_H_
#include "bsp_api.h"
#include "tx_api.h"
#include "hal_data.h"
void FileXOnUSBX_entry(void);
#endif /* FILEXONUSBX_H_ */
I've gotta be missing something simple here.