Hello Matrix Team,
I belive I just may found a problem with the dsPIC30F3012 HEX Config Words inside FC9.
Today I´ll opend a old PIC16 FC programm made under FC6 inside FC9. Compiler went through and generated the HEX file.
Unfortunately inside this new HEX file 2 of 7 config words are missing. Of course if you want to programm the chip with PIC Kit2 you get a warning.
May you have a solution for the situation
My FC9 is Version 9.1.0.27
BR
Dirk
dsPIC30F3012 HEX Config Words missing
-
- Posts: 96
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 04, 2020 11:03 am
- Has thanked: 6 times
- Been thanked: 12 times
Re: dsPIC30F3012 HEX Config Words missing
....additional information. Some compiler message are strange too:
I:\Futaba S Bus\Futaba Sbus Expander\dsPIC30F3012 Code EEProm support>xc16-gcc -c -mcpu="30F3012" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\support\h" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\" -std=gnu99 "Sbus_Expander_5CH_Beta_1_0_1CP".c -o "Sbus_Expander_5CH_Beta_1_0_1CP".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
Sbus_Expander_5CH_Beta_1_0_1CP.c: In function 'main':
Sbus_Expander_5CH_Beta_1_0_1CP.c:5276:2: warning: 'return' with a value, in function returning void
Sbus_Expander_5CH_Beta_1_0_1CP.c: At top level:
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FOSC' definition has been deprecated: consider migrating to #pragma config
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FWDT' definition has been deprecated: consider migrating to #pragma config
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FBORPOR' definition has been deprecated: consider migrating to #pragma config
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FGS' definition has been deprecated: consider migrating to #pragma config
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FICD' definition has been deprecated: consider migrating to #pragma config
Compilation successful!
I can`t understand the restricted license because I own a professional version with PIC 8, 16 and 32.
BR
Dirk
I:\Futaba S Bus\Futaba Sbus Expander\dsPIC30F3012 Code EEProm support>xc16-gcc -c -mcpu="30F3012" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\support\h" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\" -std=gnu99 "Sbus_Expander_5CH_Beta_1_0_1CP".c -o "Sbus_Expander_5CH_Beta_1_0_1CP".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
Sbus_Expander_5CH_Beta_1_0_1CP.c: In function 'main':
Sbus_Expander_5CH_Beta_1_0_1CP.c:5276:2: warning: 'return' with a value, in function returning void
Sbus_Expander_5CH_Beta_1_0_1CP.c: At top level:
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FOSC' definition has been deprecated: consider migrating to #pragma config
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FWDT' definition has been deprecated: consider migrating to #pragma config
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FBORPOR' definition has been deprecated: consider migrating to #pragma config
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FGS' definition has been deprecated: consider migrating to #pragma config
Sbus_Expander_5CH_Beta_1_0_1CP.c:5277:1: warning: '_FICD' definition has been deprecated: consider migrating to #pragma config
Compilation successful!
I can`t understand the restricted license because I own a professional version with PIC 8, 16 and 32.
BR
Dirk
Happy FC9, FC-8 and FC-6 professional user 

-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 686 times
Re: dsPIC30F3012 HEX Config Words missing
Hello Dirk,
It looks like we don't generate code for the FBS or FSS registers but it looks like they aren't currently used anyway.
It looks like we don't generate code for the FBS or FSS registers but it looks like they aren't currently used anyway.
It's the XC compiler that's saying its a restricted license. For most users the XC compiler will work fine with the default free license. The Pro version of the XC compiler is fairly expensive but does offer some code and speed optimisations when converting the Flowcode C code into machine code.I can`t understand the restricted license because I own a professional version with PIC 8, 16 and 32.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: dsPIC30F3012 HEX Config Words missing
Hi Ben
many thanks for the reply. You are right that FBS and FSS have reserved status (not used)
But if the file arrives at a programmer like PIC Kit2 FGS and FICD registers were shifted to FBS and FSS. Please see picture below.
BR
Dirk
many thanks for the reply. You are right that FBS and FSS have reserved status (not used)
But if the file arrives at a programmer like PIC Kit2 FGS and FICD registers were shifted to FBS and FSS. Please see picture below.
BR
Dirk
Happy FC9, FC-8 and FC-6 professional user 
