1
µTasker general / Re: How to configure SPI_FILE_SYSTEM to work with serial loader
« on: September 18, 2023, 12:33:51 PM »
Hi Ray
>> #define ACTIVE_FILE_SYSTEM
This is used to enable the uFileSystem which tends to be used with the FTP/HTTP interfaces. However when no Ethernet is enable in the serial loader
#define _NO_FILE_INTERFACE // code size optimisation
is set, which disables some of the support so that the size is optimised.
>> change line 217 from 64 to 476 #define UTASKER_APP_END (unsigned char *)(UTASKER_APP_START + (476 * 1024)) // use entire chip
You may need to reduce the size by the application's parameter system size so that the parameters are not deleted when loading new code.
Otherwise I haven't been able to reproduce the project so it would be simpler if you send me your config.h and app_hw_kinetis.h files.
If I have understood correctly you are using USE_USB_MSD in the application (a USB-MSD device to SD card / SPI Flash), with the following configuration note:
#define USE_USB_MSD // needs SD card to compile (or alternatives FLASH_FAT / SPI_FLASH_FAT / FAT_EMULATION)
In the serial loader the same can be set but it looks to be dedicated to the SD card:
#define USE_USB_MSD // full USB-MSD to SD card interface on USB (no emulated loader function) - requires SDCARD_SUPPORT (USB_MSD_DEVICE_LOADER can be disabled)
My initial feeling is that some addition code configuration may be required to allow the same operation.
If you send me the two header files it would be easier for me to check.
Regards
Mark
>> #define ACTIVE_FILE_SYSTEM
This is used to enable the uFileSystem which tends to be used with the FTP/HTTP interfaces. However when no Ethernet is enable in the serial loader
#define _NO_FILE_INTERFACE // code size optimisation
is set, which disables some of the support so that the size is optimised.
>> change line 217 from 64 to 476 #define UTASKER_APP_END (unsigned char *)(UTASKER_APP_START + (476 * 1024)) // use entire chip
You may need to reduce the size by the application's parameter system size so that the parameters are not deleted when loading new code.
Otherwise I haven't been able to reproduce the project so it would be simpler if you send me your config.h and app_hw_kinetis.h files.
If I have understood correctly you are using USE_USB_MSD in the application (a USB-MSD device to SD card / SPI Flash), with the following configuration note:
#define USE_USB_MSD // needs SD card to compile (or alternatives FLASH_FAT / SPI_FLASH_FAT / FAT_EMULATION)
In the serial loader the same can be set but it looks to be dedicated to the SD card:
#define USE_USB_MSD // full USB-MSD to SD card interface on USB (no emulated loader function) - requires SDCARD_SUPPORT (USB_MSD_DEVICE_LOADER can be disabled)
My initial feeling is that some addition code configuration may be required to allow the same operation.
If you send me the two header files it would be easier for me to check.
Regards
Mark