WARNING: This function is not valid for RDE versions >= 33.
This function is used to perform formatting of a logical device.
Syntax |
i32 f_format (string folder [, string result=NULL] [, real timeOut=0]) |
||||||||
---|---|---|---|---|---|---|---|---|---|
folder |
Parameter containing the name of the folder. It can take the following characters: •/FB/ •/FC/ Use fmem directive from shell to view the partitions present on the flash |
||||||||
result |
Parameter containing the result of the operation. (optional, default NULL) Can be:
|
||||||||
timeOut |
Parameter containing the maximum waiting time for instruction execution. (optional, default 0) |
||||||||
Result |
Returns:
Use the optional result and timeOut parameters for more diagnostics |
||||||||
Validity |
Task |
||||||||
System Requirements |
|
||||||||
Note |
All contents of the device in question are erased. RTE prevents the formatting of F@ and FA. If functions regarding compact flash management are used, it is recommended that bit 14 of the sys_cfg variable (0x00004000) be imposed to 1, to enable the use of safety routines for writing/reading flash |
Example of use:
|