> I integrated the microchip 32 Compiler as described on your Website
As mentioned earlier, you don't have to do that - Firewing will build for the 32MX795F512L. In addition, if you build using the native Firewing compiler the code will be optimised using -O2. If you build using the Microchip toolsuite, the code
will not be optimised! Just change the toolsuite option from "Microchip 32" to "Firewing 32" in the IDE and re-build - that's all you need to do.
> compiled it and burned it separately with the Pickit
That's a good approach. Generate a *.hex file in the Firewing IDE and then burn using PicKit via MPLAB.
>Is ist possible to configure this bits in your IDE
Yes. Unfortunately the 32MX795F512L device file does not have the necessary definitions yet. For example, the default Firewing MCU is the 32MX150F128 which has a bunch of definitions like this:
- Code: Select all
' Peripheral Module Disable Configuration
' ON - allow only one configuration
' OFF - Allow multiple configurations
public config PMDL1WAY(PMDL1WAY) = {ON, OFF}
' Peripheral Pin Select Configuration
' ON - allow only one configuration
' OFF - Allow multiple configurations
public config IOL1WAY(IOL1WAY) = {ON, OFF}
etc etc...
To set these values in the program, you would use
- Code: Select all
config FSOSCEN = OFF
config IESO = OFF
config POSCMOD = OFF
config OSCIOFNC = OFF
config FUSBIDIO = OFF
config FVBUSONIO = OFF
config JTAGEN = OFF
config FWDTEN = OFF
etc etc..
I think adding these definition to the 32MX795F512L would be a little difficult and take some time (although it could be done). That said, you wouldn't need everything - just enough to get your code working. Most of the default would probably work. You might be lucky, it may be the settings for the 32MX795F512L may be similar or in some cases the same as the 32MX150F128 , in which case you could just copy and paste - but you would really need to check the datasheet first before doing that!
I made the device generator open source (
http://www.firewing.info/pmwiki.php?n=FirewingUser.SystemGenerator) - maybe myself or someone else could add the automatic generation of fuse settings in the future.
In the meantime, you can change the fuse settings in MPLAB (which I assume you are suing to drive yout PicKit?)