dsPIC30F3012 HEX Config Words missing

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
dvcam99
Posts: 89
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

dsPIC30F3012 HEX Config Words missing

Post by dvcam99 »

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.
ds30config.jpg
ds30config.jpg (42.17 KiB) Viewed 962 times
May you have a solution for the situation

My FC9 is Version 9.1.0.27

BR

Dirk
Happy FC9, FC-8 and FC-6 professional user ;)

dvcam99
Posts: 89
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

Re: dsPIC30F3012 HEX Config Words missing

Post by dvcam99 »

....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
Happy FC9, FC-8 and FC-6 professional user ;)

dvcam99
Posts: 89
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

Re: dsPIC30F3012 HEX Config Words missing

Post by dvcam99 »

....attached the FC file for checking and duplicate the problem.

BR
Dirk
Blinky_test_16Bit.fcfx
(6.96 KiB) Downloaded 39 times
Happy FC9, FC-8 and FC-6 professional user ;)

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: dsPIC30F3012 HEX Config Words missing

Post by BenR »

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.
Config.jpg
Config.jpg (63.05 KiB) Viewed 943 times
Config2.jpg
Config2.jpg (8.23 KiB) Viewed 943 times
I can`t understand the restricted license because I own a professional version with PIC 8, 16 and 32.
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.

dvcam99
Posts: 89
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

Re: dsPIC30F3012 HEX Config Words missing

Post by dvcam99 »

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.

ds30config_comparision.jpg
ds30config_comparision.jpg (89.7 KiB) Viewed 938 times
BR

Dirk
Happy FC9, FC-8 and FC-6 professional user ;)

dvcam99
Posts: 89
Joined: Fri Dec 04, 2020 11:03 am
Has thanked: 6 times
Been thanked: 12 times

Re: dsPIC30F3012 HEX Config Words missing

Post by dvcam99 »

...in addition here is the FC6 config page.
FC6_Config_page.jpg
FC6_Config_page.jpg (74.19 KiB) Viewed 934 times


BR

Dirk
Happy FC9, FC-8 and FC-6 professional user ;)

Post Reply