Page 1 of 1

ds_pic compile to hex

Posted: Fri Jun 10, 2011 11:58 am
by saschech@gmx.de
Hello

I can not "compile to hex" my projekt inside flowcode because it stop vor ever
show: flowcode compile to hex

Inside mplab it work well with compiler v3.25
show: mplab compile v 3.25 ok

after update to v 3.3 compile stopp with error before line : "master.c: In function '_INT1Interrupt': "
show: mplab compile v3.3 error

Please help

Regards Wolfgang

Re: ds_pic compile to hex

Posted: Fri Jun 10, 2011 12:35 pm
by Steve
Please post the FCF, C and MSG.TXT files for your project and we'll look into this problem.

Re: ds_pic compile to hex

Posted: Fri Jun 10, 2011 2:03 pm
by saschech@gmx.de
Hello Steve

Here are the files

Regards Wolfgang

Re: ds_pic compile to hex

Posted: Fri Jun 10, 2011 3:03 pm
by Steve
Hi Wolfgang,

Your program compiles without error within Flowcode. The problem is that there is a 32k limit to the text that can be displayed in the "compilation messages" window.

So my "plan A" was to reduce the number of warning messages that were being displayed...

There are a lot of the same warning message ("discards qualifiers from pointer target type"), which can be turned off using the compiler parameter "-Wno-cast-qual". Unfortunately, there seems to be a bug in the GCC compiler which does not allow this warning to be turned off!

So "plan B" was to stop these warning messages...

Unfortunately, I cannot do this as well as I'd like and there may be further problems with other programs. But it does solve the problem for your particular program. The attached file is slightly modified to avoid these warnings - it should be downloaded and placed into the FCD folder of Flowcode PIC24&dsPIC.

I hope this helps.

Re: ds_pic compile to hex

Posted: Fri Jun 10, 2011 4:32 pm
by saschech@gmx.de
Hello Steve

After i change the file , i can compile to hex inside flowcode,
but the .c file generate with the c30 v3.25 also a error, so i cant program over
the way mplab >> icd3....
After change back the file i can not fix these error.... luckily with a copy of the
Folder i have the old situation wich work ok.

Do you think ,in future there is a way fix the problem?

Thank you for all....

Regards Wolfgang

Re: ds_pic compile to hex

Posted: Tue Jun 14, 2011 10:46 am
by Steve
I'm not sure what we can do to help with this. The C code generated by Flowcode is designed to work with the compiler that Flowcode is shipped with. If you try to use a different compiler, then you may need to alter the C code so it suits this other compiler.

You can use the EB064 as an ISP tool to program your own hardware if you like. That way, you would not need to use the ICD3 tool from within MPLAB.