dsPIC33EP128MC506 PWM1 and PWM2 problem [solved]

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

Moderator: Benj

Post Reply
User avatar
celebriums
Posts: 121
Joined: Sun Sep 25, 2016 3:50 pm
Contact:

dsPIC33EP128MC506 PWM1 and PWM2 problem [solved]

Post by celebriums »

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 106 times
Last edited by celebriums on Fri Apr 20, 2018 4:10 pm, edited 1 time in total.

User avatar
Benj
Matrix Staff
Posts: 15149
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: dsPIC33EP128MC506 PWM1 and PWM2 problem

Post by Benj »

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 113 times
Let us know how you get on.

User avatar
celebriums
Posts: 121
Joined: Sun Sep 25, 2016 3:50 pm
Contact:

Re: dsPIC33EP128MC506 PWM1 and PWM2 problem (SOLVED)

Post by celebriums »

Hi Benj
Thank you for your help. The update is working correctly.
:D

Post Reply