ConfigGenerator

SwordfishUser.ConfigGenerator History

Hide minor edits - Show changes to output

Changed line 21 from:
You should place the config section at the beginning of your main program before any 'include' statements. That way, the defaults set in the config section can be over-ridden by any modules included after it... config entries are processed such that the last config setting seen is the one used. Note that this may also override any defaults setup in the device .bas file, so you should check the resulting .asm file output after you compile to ensure your settings are correct (the CONFIG section is at the very end).
to:
You should place the config section at the beginning of your main program before any 'include' statements. That way, the defaults set in the config section can be overridden by any modules included after it... config entries are processed such that the last config setting seen is the one used. Note that this may also override any defaults setup in the device .bas file, so you should check the resulting .asm file output after you compile to ensure your settings are correct (the CONFIG section is at the very end). This will also allow you to see if any settings were overridden by other include files, such as intosc.bas.
Changed line 23 from:
The '''Set Defaults''' button will change all the settings back to the defaults provided in the .info file, with the exception of 'XINST', 'DEBUG', 'JTAGEN', 'MVECEN', and 'IOL1WAY' (if present for the selected device). The program always sets these off by default, unless the '''Use .info Defaults''' checkbox is enabled in which case it will use the default settings found in the file.
to:
The '''Set Defaults''' button will change all the settings back to the defaults provided in the .info file, with the exception of 'XINST', 'WDT/WDTE/WDTEN', 'DEBUG', 'JTAGEN', 'MVECEN', and 'IOL1WAY/PPS1WAY' (if present for the selected device). The program always sets these off by default, unless the '''Use .info Defaults''' checkbox is enabled in which case it will use the default settings found in the file.
Changed line 21 from:
You should place the config section at the beginning of your main program before any 'include' statements. That way, the defaults set in the config section can be over-ridden by any modules included after it... config entries are processed such that the last config setting seen is the one used.
to:
You should place the config section at the beginning of your main program before any 'include' statements. That way, the defaults set in the config section can be over-ridden by any modules included after it... config entries are processed such that the last config setting seen is the one used. Note that this may also override any defaults setup in the device .bas file, so you should check the resulting .asm file output after you compile to ensure your settings are correct (the CONFIG section is at the very end). 
Changed line 23 from:
The '''Set Defaults''' button will change all the settings back to the defaults provided in the .info file, with the exception of 'XINST', 'DEBUG', 'JTAGEN', 'MVECEN', and 'IOL1WAY' (if present for the selected device). The program always sets these off by default, unless the '''Use .info Defaults''' checkbox is enabled in which case it will use the default settings found in the .info file.
to:
The '''Set Defaults''' button will change all the settings back to the defaults provided in the .info file, with the exception of 'XINST', 'DEBUG', 'JTAGEN', 'MVECEN', and 'IOL1WAY' (if present for the selected device). The program always sets these off by default, unless the '''Use .info Defaults''' checkbox is enabled in which case it will use the default settings found in the file.
Changed lines 1-6 from:
The ConfigGen utility can be used as an aid in setting the device configuration fuse settings.
The utility can be found in the Tools folder as part of the standard compiler installation.

The software uses the MPASM '8bit_device.info' file as
the source of its information, and can be set to use the MPASM, MPASMX, or Swordfish copy.

to:
The ConfigGen utility can be used as an aid in setting the device configuration register settings.

The utility is installed as an IDE plugin (IDE menu 'Plugin | ConfigGenerator'), but can also be run as a standalone program outside the IDE (Swordfish Plugin\ConfigGen\ConfigGen.exe).

Changed lines 9-19 from:
Make sure the software is pointing to the MPASM, MPASMX, or Swordfish Bin installation folder. If it is not, use the 'Change Folder...' button to point to the location of the file '8bit_device.info'.
For MPLAB this is typically "C:\Program Files\Microchip\MPASM Suite" and for MPLABX it's "C:
\Program Files\Microchip\MPLABX\mpasmx". Next, press the 'Load File' button. This will open the .info file and build a list of all PIC18 devices contained in it. Select your desired device from the 'Device' dropdown list and it will display all of the config fuses and their default settings.

Clicking the 'Setting' column for a config entry will show a dropdown list with all of the valid selections for that fuse.

When all config settings have been made, click
the 'Generate' button and the program will generate source code with all of your selections (the 'Comments' checkbox will remove the descriptions and just leave the settings, if desired).

Selecting 'Copy to Clipboard' will dump the output window contents into
the Windows clipboard, which you can then paste into a file using a text editor or the Swordfish IDE using 'Edit | Paste' (or Ctrl-V).

The 'Set Defaults' button will change all the settings back to the defaults provided in the .info file,
with
the exception of 'XINST', 'DEBUG', 'LVP', and 'IOL1WAY' if present for the selected device. The program always sets these off (unless the 'Use .info Defaults' checkbox is enabled).
to:
The software uses the MPASMX '8bit_device.info' file as the source of its information.

The first time you run the program make sure
the '''MPASMX folder''' setting is pointing to the Swordfish\Bin folder. This should default to the Swordfish installation directory found in the system registry, ie 'Swordfish\bin'. If it is not, use the '''Change Folder...''' button to point to the location of the Swordfish copy of the MPASMX '8bit_device.info' file. Click the '''Load File''' button. This will open the .info file and build a list of all PIC18 devices contained in it.

Select your desired device from the '''Device''' dropdown list and it should display all of the config entries and their default settings.

Clicking
the '''Setting''' column for a config entry will show a drop-down list with all of the valid selections for that function.

When all config settings have been made, click
the '''Generate''' button and the program will generate source code with all of your selections (unchecking the '''Comments''' box will remove the descriptions and just leave the settings, if desired).

Selecting '''Copy to Clipboard''' will dump the output window contents into the Windows clipboard, which you can then paste into your main program file using a text editor or
the Swordfish IDE using 'Edit | Paste' (or Ctrl-V).

You should place the config section at the beginning of your main program before any
'include' statements. That way, the defaults set in the config section can be over-ridden by any modules included after it... config entries are processed such that the last config setting seen is the one used.

The '''Set Defaults''' button will change all the settings back to the defaults provided in the .info file, with the exception of 'XINST', 'DEBUG', 'JTAGEN', 'MVECEN', and 'IOL1WAY' (if present for the selected device). The program always sets these off by default, unless the '''Use .info Defaults''' checkbox is enabled in which case it will use the default settings found in the .info file
.
October 30, 2019, at 08:36 PM by Jerry Messina -
Changed lines 2-5 from:

**[[Attach:ConfigGen_v131.zip | ConfigGen_v131.zip]] - Config Generator software.

Unzip
the utility and place the file ConfigGen.exe in a directory of your choice. The software uses the MPASM '8bit_device.info' file as the source of its information, and can be set to use the MPASM, MPASMX, or Swordfish copy.
to:
The utility can be found in the Tools folder as part of the standard compiler installation.

The software uses the MPASM '8bit_device.info' file as the source of its information, and can be set to use the MPASM, MPASMX, or Swordfish copy.
Changed lines 3-4 from:
**[[Attach:ConfigGen_v13.zip | ConfigGen_v13.zip]] - Config Generator software.
to:
**[[Attach:ConfigGen_v131.zip | ConfigGen_v131.zip]] - Config Generator software.
Changed line 8 from:
%center% Attach:ConfigGen_v11.jpg
to:
%center% Attach:ConfigGen_v131.jpg
Changed lines 3-4 from:
**[[Attach:ConfigGen_v11.zip | ConfigGen_v11.zip]] - Config Generator software.
to:
**[[Attach:ConfigGen_v13.zip | ConfigGen_v13.zip]] - Config Generator software.
Changed line 21 from:
with the exception of 'XINST', 'DEBUG', 'LVP', and 'IOL1WAY' (if present for the selected device). The program always sets these off.
to:
with the exception of 'XINST', 'DEBUG', 'LVP', and 'IOL1WAY' if present for the selected device. The program always sets these off (unless the 'Use .info Defaults' checkbox is enabled).
Changed line 8 from:
%center% Attach:ConfigGen.jpg
to:
%center% Attach:ConfigGen_v11.jpg
Changed line 3 from:
**[[Attach:ConfigGen_v10.zip | ConfigGen_v10.zip]] - Config Generator software.
to:
**[[Attach:ConfigGen_v11.zip | ConfigGen_v11.zip]] - Config Generator software.
Added lines 1-22:
The ConfigGen utility can be used as an aid in setting the device configuration fuse settings.

**[[Attach:ConfigGen_v10.zip | ConfigGen_v10.zip]] - Config Generator software.

Unzip the utility and place the file ConfigGen.exe in a directory of your choice. The software uses the MPASM '8bit_device.info' file as the source of its information, and can be set to use the MPASM, MPASMX, or Swordfish copy.


%center% Attach:ConfigGen.jpg
%center% '''Config Generator Software'''

Make sure the software is pointing to the MPASM, MPASMX, or Swordfish Bin installation folder. If it is not, use the 'Change Folder...' button to point to the location of the file '8bit_device.info'.
For MPLAB this is typically "C:\Program Files\Microchip\MPASM Suite" and for MPLABX it's "C:\Program Files\Microchip\MPLABX\mpasmx". Next, press the 'Load File' button. This will open the .info file and build a list of all PIC18 devices contained in it. Select your desired device from the 'Device' dropdown list and it will display all of the config fuses and their default settings.

Clicking the 'Setting' column for a config entry will show a dropdown list with all of the valid selections for that fuse.

When all config settings have been made, click the 'Generate' button and the program will generate source code with all of your selections (the 'Comments' checkbox will remove the descriptions and just leave the settings, if desired).

Selecting 'Copy to Clipboard' will dump the output window contents into the Windows clipboard, which you can then paste into a file using a text editor or the Swordfish IDE using 'Edit | Paste' (or Ctrl-V).

The 'Set Defaults' button will change all the settings back to the defaults provided in the .info file,
with the exception of 'XINST', 'DEBUG', 'LVP', and 'IOL1WAY' (if present for the selected device). The program always sets these off.