ds_pic compile to hex

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

ds_pic compile to hex

Post 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
Attachments
mplab compile v3.3 error.pdf
(120.8 KiB) Downloaded 220 times
mplab compile v 3.25 ok.pdf
(126.01 KiB) Downloaded 222 times
flowcode compile to hex.pdf
(120.93 KiB) Downloaded 223 times

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: ds_pic compile to hex

Post by Steve »

Please post the FCF, C and MSG.TXT files for your project and we'll look into this problem.

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: ds_pic compile to hex

Post by saschech@gmx.de »

Hello Steve

Here are the files

Regards Wolfgang
Attachments
master.msg.txt
(29.3 KiB) Downloaded 233 times
master.rar
(18.87 KiB) Downloaded 229 times
master.c
(244.42 KiB) Downloaded 236 times

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: ds_pic compile to hex

Post 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.
Attachments
internals.h
(30.26 KiB) Downloaded 225 times

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: ds_pic compile to hex

Post 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

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: ds_pic compile to hex

Post 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.

Post Reply