Tuesday, June 27th 2017, 3:49am UTC+2

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 23.

Monday, May 22nd 2017, 9:47am

Author: SEGGER - Marius

Handling FAT32 partitions with emFile

Hello, There are two possibilities to handle more than one partition on an SD card: 1) Using the logical volume feature that allows the application to configure a fixed partition size and offset. You can find more information in the sections "4.3.6 FS_LOGVOL_Create()" and "4.3.7 FS_LOGVOL_AddDevice()" of the emFile manual. 2) Using the disk partition logical driver that employs the information stored in the Master Boot Partition. For more information please refer to the "7.2 Disk partition drive...

Tuesday, March 28th 2017, 1:44pm

Author: SEGGER - Marius

[SOLVED] Old versions of Flasher 5 pro

Hello Martynas, We will provide you the requested information via the support email. Best regards, Marius

Thursday, March 9th 2017, 9:57am

Author: SEGGER - Marius

MMC_SPI - Reads but won't write

Hello Dave, We are not aware of this behavior. The error messages suggest that the SPI data transfer is not working properly. I suggest you to check first if the SPI controller is correctly configured: - Data is sampled on the rising edge of the clock signal. - The clock signal is HIGH in idle state. You can find more information in the section "6.5.8.1.8 (*pfWrite)()" of the emFile manual. Best regards, Marius

Monday, October 31st 2016, 11:37am

Author: SEGGER - Marius

Partial writes to MT29F1G01

Hello Donal, The Micron MT29F1G01 is supported by the emFile Universal NAND driver. This driver does not perform partial writes to a NAND page. It always writes an entire NAND page at once. Regarding buffering: Using a buffer when writing small chunks of data is recommended for better write performance and for preserving the lifetime of the NAND flash. emFile comes with a configurable file buffer therefor the application is not required to buffer the data itself. Best regards, Marius

Monday, June 6th 2016, 1:42pm

Author: SEGGER - Marius

Which way to go to separate NOR flash into multiple volumes

Hello Stefan, You can use FS_LOGVOL_Create()/FS_LOGVOL_AddDevice() functions to create two separate volumes on the NOR flash. An example is provided in the section "4.3.7 FS_LOGVOL_AddDevice()" of the emFile manual. The volumes can be accessed from different tasks provided FS_OS_LOCKING is set to 1 or 2. Best regards, Marius

Tuesday, May 10th 2016, 5:24pm

Author: SEGGER - Marius

FAT licence

Hello Zdenek, Only the handling of long file names is patented by Microsoft. According to swpat.org some of these patents are still valid, especially in Europe. I recommend you to get in contact directly with Microsoft in order to evaluate these legal issues. No licensing is required if your application uses file names in 8.3 format. Best regards, Marius

Friday, January 29th 2016, 4:05pm

Author: SEGGER - Marius

Automatic folder creation & date stamping

Hello, Could you please check the return value of FS_MkDir()? In case of an error the function returns a negative value indicating the reason why the operation failed. The possible error codes are defined at the beginning of the FS.h file (FS_ERRCODE_...) You can get a short text description of the error by calling FS_ErrorNo2Text() with the error code as parameter. Best regards, Marius

Wednesday, January 27th 2016, 5:39pm

Author: SEGGER - Marius

Automatic folder creation & date stamping

Hello, The file system treats the name of the files and of the directories in the same way. FS_FAT_SupportLFN() enables the support for long file name for files as well as for directories. Could you please check the return value of FS_MkDir()? The error code should give a hint about what went wrong during the operation. Best regards, Marius

Wednesday, January 27th 2016, 10:36am

Author: SEGGER - Marius

Automatic folder creation & date stamping

Hello, I tested here with the version 4.00b of the file system. With support for long file names enabled, I was able to successfully create a file with the name "01-27-2016". Which version of the file system are you using? Does the file system report any errors when you try to create the file? Best regards, Marius

Friday, January 22nd 2016, 9:58am

Author: SEGGER - Marius

Automatic folder creation & date stamping

Hello, The file system uses the FS_X_GetTimeDate() function to generate the timestamps of files and directories. In order to have correct timestamps, you should add calls to your RTC routines in this function as documented in the emFile manual. Best regards, Marius

Thursday, January 21st 2016, 4:37pm

Author: SEGGER - Marius

Automatic folder creation & date stamping

Hello, Would it be possible to provide more details about how do you get this date? Best regards, Marius

Wednesday, January 20th 2016, 4:20pm

Author: SEGGER - Marius

Automatic folder creation & date stamping

Hello chopra.arpita92, It seems that you are trying to create a file with a name longer than 8 characters. This works only when the support for long file names is enabled in the file system. The support for long file names is disabled by default. It can be enabled by calling FS_FAT_SupportLFN() API function. Would it be possible to try this in your application? Best regards, Marius

Friday, January 15th 2016, 3:58pm

Author: SEGGER - Marius

emFile with NOR Flash Crash

Hello leonarff, In some cases, the NOR driver needs to know only the address of a physical sector and it calls GetSectorInfo() with the pLen parameter set to NULL. You can avoid the Hardware Fault error by validating the pLen parameter before dereferencing it. C/C++ Source code 1 2 3 if (pLen) { *pLen = 4096; } Best regards, Marius

Monday, September 14th 2015, 3:42pm

Author: SEGGER - Marius

Multiple file descriptors.

Hello Felipe, In the trial version of emFile you are limited to 2 files opened at the same time. In the licensed version of emFile the number of files opened at the same time is limited only by the amount of memory available to file system. Best regards, Marius

Wednesday, February 11th 2015, 9:05am

Author: SEGGER - Marius

Flasher - R8C

Hello SergiiSM, R8C/33M is not supported by the Flasher 5 but it looks like it is similar to R8C/33C. You can try selecting R5F21336CDFP or R5F21336CNFP as target device. Best regards, Marius

Monday, January 12th 2015, 1:51pm

Author: SEGGER - Marius

Is it possible to read files from both SD card and USB disk in a single project ?

Hello Paramasivan, Yes, it is possible to copy files from SD card to USB drive. All you have to do is to add the SD/MMC and the USB MSD drivers to your emFile configuration as in the following example: C/C++ Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 void FS_X_AddDevices(void) { FS_AssignMemory(&_aMemBlock[0], sizeof(_aMemBlock)); // // Add the USB MSD driver. Volume name: "msd:0:" // FS_AddDevice(&USBH_MSD_FS_Driver); // // Add and configure the SD/MMC driver. Volume name: "mmc:0:" // F...

Tuesday, September 30th 2014, 11:21am

Author: SEGGER - Marius

NAND Flash - Support for 256 byte pages

Hello Bharath, As I already wrote you in the answer to you private message the Adesto AT45DB641E part with 256 byte pages is supported by the latest emFile version (3.34a). You will have to upgrade your emFile license. Best regards, Marius

Monday, September 1st 2014, 11:40am

Author: SEGGER - Marius

what is the maximum path length in emFile?

Hello, emFile does not explicitly limit the depth of a directory. There is however one API function which temporarily stores the full path to a directory: FS_CreateDir(). It uses FS_MAX_PATH define (default: 260 bytes) to allocate the path buffer. Also, when emFile is compiled with FS_MULTI_HANDLE_SAFE is set to 1 the full path to an opened file is stored internally. The maximum number of bytes in the path can be specified using the FS_MAX_LEN_FULL_FILE_NAME define (default: 256 bytes). Best reg...

Tuesday, February 28th 2012, 11:35am

Author: SEGGER - Marius

JLink EDU defective

Hello Sebastian, We did a quick test with a J-Link EDU on a Mac OS X and it works without any problems (see the screenshot below). Have you tried to connect your J-Link EDU to a Windows machine? Does it show the same behavior? [attach]192[/attach] Best regards, Marius

Thursday, January 19th 2012, 4:30pm

Author: SEGGER - Marius

emFile integration with embOs

Hello, @Sohoil The number of semaphores required is computed by emFile at runtime like this: - no locking (FS_OS_LOCKING == 0) -> no semaphores - coarse lock granularity (FS_OS_LOCKING == 1) -> 1 semaphore - fine lock granularity (FS_OS_LOCKING == 2) -> 1 + <number of drivers> semaphores @Tobermory When using emFile in library form setting FS_OS_LOCKING has no effect. The required level of locking can be selected by linking the appropriate library. This is the reason why emFile requires 2 semaph...