dsPIC33EP128MC506 PWM1 and PWM2 problem [solved]

An area to discuss 16-bit PIC specific problems and examples

Moderator: Benj

User avatar
celebriums
Posts: 92
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 48 times
Been thanked: 26 times
Contact:

dsPIC33EP128MC506 PWM1 and PWM2 problem [solved]

Postby celebriums » Thu Apr 05, 2018 5:26 pm

Hi
When you run the PWM1 and PWM2 modules, the compilation error is as follows.

"..
C:\ELLAMP~1\E1299F~1\Software>xc16-gcc -c -mcpu="33EP128MC506" -omf=coff -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\" -std=gnu99 "EPS20180504-1804".c -o "EPS20180504-1804".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:455:0,
from EPS20180504-1804.c:233:
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c: In function 'FC_CAL_PWM_Enable_3':
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:69:1: error: 'RPOR1BITS' has no member named 'RP42R'
In file included from C:\Program Files (x86)\Flowcode 7\CAL\includes.c:476:0,
from EPS20180504-1804.c:233:
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c: In function 'FC_CAL_PWM_Enable_4':
C:\Program Files (x86)\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_PWM.c:69:1: error: 'RPOR1BITS' has no member named 'RP43R'

Error returned from [xc16-gcc.exe]
Completed compilation, return = 1

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



FINISHED"
Attachments
EPS20180504-1804.fcfx
(27.04 KiB) Downloaded 27 times
Last edited by celebriums on Fri Apr 20, 2018 4:10 pm, edited 1 time in total.

User avatar
Benj
Matrix Staff
Posts: 13939
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4221 times
Been thanked: 3976 times
Contact:

Re: dsPIC33EP128MC506 PWM1 and PWM2 problem

Postby Benj » Fri Apr 06, 2018 5:56 pm

Hi Sadik,

Many thanks for letting us know. I believe I have now found and fixed the problem for you.

Simply copy the attached file to your "Flowcode7/FCD/PIC16" folder and restart Flowcode and hopefully the problem will be resolved.

33EP128MC506.fcdx
(31.53 KiB) Downloaded 38 times


Let us know how you get on.
These users thanked the author Benj for the post:
celebriums (Mon Apr 09, 2018 7:31 am)
Rating: 5.88%
 

User avatar
celebriums
Posts: 92
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 48 times
Been thanked: 26 times
Contact:

Re: dsPIC33EP128MC506 PWM1 and PWM2 problem (SOLVED)

Postby celebriums » Mon Apr 09, 2018 7:42 am

Hi Benj
Thank you for your help. The update is working correctly.
:D
These users thanked the author celebriums for the post:
Benj (Mon Apr 09, 2018 12:03 pm)
Rating: 5.88%