Page 1 of 1

dsPIC30F3012 HEX Config Words missing

Posted: Thu Nov 24, 2022 8:21 pm
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 2976 times
May you have a solution for the situation

My FC9 is Version 9.1.0.27

BR

Dirk

Re: dsPIC30F3012 HEX Config Words missing

Posted: Thu Nov 24, 2022 9:07 pm
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

Re: dsPIC30F3012 HEX Config Words missing

Posted: Fri Nov 25, 2022 1:56 pm
by dvcam99
....attached the FC file for checking and duplicate the problem.

BR
Dirk
Blinky_test_16Bit.fcfx
(6.96 KiB) Downloaded 356 times

Re: dsPIC30F3012 HEX Config Words missing

Posted: Fri Nov 25, 2022 3:16 pm
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 2957 times
Config2.jpg
Config2.jpg (8.23 KiB) Viewed 2957 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.

Re: dsPIC30F3012 HEX Config Words missing

Posted: Fri Nov 25, 2022 4:03 pm
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 2952 times
BR

Dirk

Re: dsPIC30F3012 HEX Config Words missing

Posted: Fri Nov 25, 2022 4:29 pm
by dvcam99
...in addition here is the FC6 config page.
FC6_Config_page.jpg
FC6_Config_page.jpg (74.19 KiB) Viewed 2948 times


BR

Dirk