Page 1 of 1

FC6 Compilation problem with DSPIC

Posted: Sat May 07, 2016 4:26 pm
by sysprofessional
Hi,
I am getting problem to compile 16 bit chip in Flowcode 6,I am using professional licence for FC6.
I have design a flowchart very simple just flash a LED with 500 ms delay.
I have tried it on 33fj32mc202 and 33fj32mc204,i did not check it with reinstall fc because it is working fine on all 8 bit chips and PIC24 Family, Plz suggest me the right way
compiler message shown below,


Target folder: C:\Users\SYSPRO\Desktop\Working\EMBEDD~1\Working\7-5-2016\1\test
Source name: C:\Users\SYSPRO\Desktop\Working\Embedded Web Server\Working\7-5-2016\1\test\Flowcode1.fcfx
Title:
Description:
Device: PIC16.33F.33FJ32MC202
Generated by: Flowcode v6.1.3.2
Date: Saturday, May 07, 2016 20:11:45
Users: 1
Registered to: sysprofessional
Licence key: -------
http://www.flowcode.co.uk
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_comp.bat "Flowcode1" "C:\Users\SYSPRO\Desktop\Working\EMBEDD~1\Working\7-5-2016\1\test\" "33FJ32MC202"
Launching compiler...

C:\Users\SYSPRO\Desktop\Working\EMBEDD~1\Working\7-5-2016\1\test>pic30-gcc -c -mcpu="33FJ32MC202" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "Flowcode1".c -o "Flowcode1".o

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_link.bat "C:\Users\SYSPRO\Desktop\Working\EMBEDD~1\Working\7-5-2016\1\test\Flowcode1" 33FJ32MC202 33F

C:\Users\SYSPRO\Desktop\Working\EMBEDD~1\Working\7-5-2016\1\test>pic30-gcc -Wl,"C:\Users\SYSPRO\Desktop\Working\EMBEDD~1\Working\7-5-2016\1\test\Flowcode1".o,-L"C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\C_tools\lib",--heap=256,--report-mem,--script="C:\PROGRA~2\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\Support\33F\gld\p33FJ32MC202.gld",-o"C:\Users\SYSPRO\Desktop\Working\EMBEDD~1\Working\7-5-2016\1\test\Flowcode1".cof
c:\progra~2\flowco~1\compil~1\pic16\bin\bin\..\bin/pic30-coff-ld.exe: Error: Settings in '__FGS.sec' are not valid for target device 33FJ32MC202

Error returned from [pic30-gcc.exe]

C:\Program Files (x86)\Flowcode 6\compilers\pic16\batchfiles\pic16_C30_link.bat reported error code 1


FINISHED

Re: FC6 Compilation problem with DSPIC

Posted: Mon May 09, 2016 11:26 am
by Benj
Hello,

Thanks for letting us know. We have now found and fixed some problems with the alignment of the configuration words for the devices you mentioned as well as a few others.

Extract the attached files into your "Flowcode 6\FCD\PIC16" folder to apply the changes.
PIC16.zip
(29.51 KiB) Downloaded 346 times
However this has not fixed the compilation error so it looks like this is a compiler related bug. We will continue investigating and see if we can find the cause.

Re: FC6 Compilation problem with DSPIC

Posted: Mon May 09, 2016 11:52 am
by Benj
I've had a good play, taking compiler resources for a working device 33FJ64MC202 and placing it in the 33FJ32MC202 resources but so far I've not been able to fix the problem.

We have also tested the fixed chip definition files using the new Flowcode v7 compiler and this is working correctly so this confirms it is a compiler issue that is causing the problem.

Re: FC6 Compilation problem with DSPIC

Posted: Mon May 09, 2016 12:00 pm
by Benj
Right I've managed to fix the compile error by getting rid of the problematic config registers from the definition file.

The registers only dealt with things like code protect so you should be ok with the config settings removed as long as you don't need the code protect functionality.
PIC16.zip
(7.88 KiB) Downloaded 362 times

Re: FC6 Compilation problem with DSPIC

Posted: Mon Jun 20, 2016 11:27 pm
by RCT
Hello,

I have a similar problem whenever I try to us the eeprom in my code. The chip in question is the PIC24FV32KA301. If I remove all occurrences of the eeprom I can compile successfully but once I include it I get the following error:

Error returned from [pic30-gcc.exe]

Can you provide a fix for me please?