Page 1 of 1

//Configuration data not present in .C for 24FJ256GA110

Posted: Mon May 14, 2012 1:50 pm
by Mathy
Hi,

I have a big problem with this MCU.
Configuration data are not present in the C file but it is with the 24FJ254DA210 for exemple.

Can you fix this because changing MCU is impossible in this application ?

Thank you for your help.

Re: //Configuration data not present in .C for 24FJ256GA110

Posted: Mon May 14, 2012 5:06 pm
by Mathy
Hello,

Is it possible to look at my problem because I'm desesperate...

If I choose to don't use the external program to configure the MCU in the compiler options, I'm able to write the fuse in the configuration box ( the required _CONFIG data ).
But after clicking OK, the configuration words disappears....

please...

Re: //Configuration data not present in .C for 24FJ256GA110

Posted: Mon May 14, 2012 5:18 pm
by Benj
Hello,

I have just given this a go using Flowcode v4.4 and using PPP to setup the configuration inside Flowcode seems to work fine. I then compiled to C and the settings are included in the C code.

If you need to manually embed your own configuration C code then you can do this by creating a new project. Do not open the Project Options Configure window as this will add the C code to the Flowcode file for you. Instead go into the Project options supplementary code window and add the C code for the configuration setting here into the definitions section.

You can also hard code the configuration directly into the Flowcode definition file FCD if you wish to. This way any time you use that specific target your config data will already be included and correct. If you have access to Flowcode PIC then you can use the MIAC or Formula Flowcode FCD as a template to modifying the 16-bit PIC FCD. All the hardcoded config stuff is at the top of the FCD file in the device section or directly underneath.