Difference between revisions of "FWCONFIG"

From SoftMC-Wiki
Jump to: navigation, search
(Supported options:)
Line 19: Line 19:
 
* sysdatarecfilename
 
* sysdatarecfilename
 
* sysdatareclen
 
* sysdatareclen
 +
<pre>
 
system data recorder length (number of records)<br>
 
system data recorder length (number of records)<br>
 +
</pre>
 
* sysdatarecposttriglen
 
* sysdatarecposttriglen
 
* haplsstartoutput
 
* haplsstartoutput
 
* haplsrange
 
* haplsrange
 
* translatormempartsize
 
* translatormempartsize
 +
<pre>
 
initial size for translator memory partition<br>
 
initial size for translator memory partition<br>
 +
</pre>
 
* passbuffersize
 
* passbuffersize
 
* ipaddressmask
 
* ipaddressmask
Line 33: Line 37:
 
</pre><br>
 
</pre><br>
 
* defaultgw
 
* defaultgw
 +
<pre>
 
sets default gateway, available since version 0.4.17.2<br>
 
sets default gateway, available since version 0.4.17.2<br>
 
'''Examples''':<br>
 
'''Examples''':<br>
 
'''defaultgw''' 10.4.20.1 <br />
 
'''defaultgw''' 10.4.20.1 <br />
 
<br>
 
<br>
 +
</pre>
 
* netif
 
* netif
 
* sleep
 
* sleep
 +
<pre>
 
delay in millesconds<br>
 
delay in millesconds<br>
 +
</pre>
 
* stringblockpreload
 
* stringblockpreload
 +
<pre>
 
initial size of string descriptors. Default is 300,000. Reduce this value if application has less than 300,000 string variables.<br>
 
initial size of string descriptors. Default is 300,000. Reduce this value if application has less than 300,000 string variables.<br>
<pre>
 
 
               Set a number of pre-allocated fixed blocks for string management <br>
 
               Set a number of pre-allocated fixed blocks for string management <br>
 
               Example: stringblockpreload 200000 <br>
 
               Example: stringblockpreload 200000 <br>
Line 52: Line 60:
 
</pre><br>
 
</pre><br>
 
* stringpreload
 
* stringpreload
 +
<pre>
 
initial size of BASIC strings. Default is 0. Strings are created empty.<br>
 
initial size of BASIC strings. Default is 0. Strings are created empty.<br>
 +
</pre>
 
* libstacksize
 
* libstacksize
 +
<pre>
 
library stack size<br>
 
library stack size<br>
 +
</pre>
 
* taskstacksize
 
* taskstacksize
 +
<pre>
 
default task stack size<br>
 
default task stack size<br>
 +
</pre>
 
* sysdatarecfilename
 
* sysdatarecfilename
 +
<pre>
 
system data recorder file name<br>
 
system data recorder file name<br>
 +
</pre>
  
 
* hpetfreq
 
* hpetfreq

Revision as of 10:17, 26 October 2017

FWCONFIG

File used for setting important sotMC system parameters before starting the fw. It contains firmware initialization options.

CAUTION.svgCAUTION
To be used only by experienced user!



Commands

Syntax

option value[{byte|kbyte|mbyte}]

Supported options:

  • ramdisksize
  • libstacksize
  • taskstacksize
  • ifaddr
  • sysdatarecfilename
  • sysdatareclen
system data recorder length (number of records)<br>
  • sysdatarecposttriglen
  • haplsstartoutput
  • haplsrange
  • translatormempartsize
initial size for translator memory partition<br>
  • passbuffersize
  • ipaddressmask
                Examples: <br>
	        ipaddressmask 192.168.20.20:255.255.0.0 <br>
                ipaddressmask dhcp <br>

  • defaultgw
sets default gateway, available since version 0.4.17.2<br>
'''Examples''':<br>
'''defaultgw''' 10.4.20.1 <br />
<br>
  • netif
  • sleep
delay in millesconds<br>
  • stringblockpreload
initial size of string descriptors. Default is 300,000. Reduce this value if application has less than 300,000 string variables.<br>
               Set a number of pre-allocated fixed blocks for string management <br>
               Example: stringblockpreload 200000 <br>
               Rules:
               1. For best performance This number shell be tuned to the maximum number (BlockMallocCounter) of "common shared" strings/structures used by application
               Hints: <br>
               BlockMallocCounter: maximum ("saturated") number of fixed blocks  <br>
               BlockInuseCounter: number of blocks allocated at this moment <br>

  • stringpreload
initial size of BASIC strings. Default is 0. Strings are created empty.<br>
  • libstacksize
library stack size<br>
  • taskstacksize
default task stack size<br>
  • sysdatarecfilename
system data recorder file name<br>
  • hpetfreq
  • defaultbus
  • singlebus
  • cantimings
  • socandevice
  • tcp_keepalive_time
  • tcp_keepalive_intvl
  • tcp_keepalive_probes

See Socket_keep-alive_timeouts




Examples:
ipaddressmask 192.168.20.20:255.255.0.0
sleep 20
libstacksize 20kbyte
hpetfreq 2000 for cycle time 500 microsecond or hpetfreq 1000 for cycle time up to 1 millisecond