Page 1 of 1

RC5 decoder with PIC24EP512 compiler issue

Posted: Tue Jun 08, 2021 9:28 pm
by pschoon
Hi,

I tried to use the RC5 component in my project.
I'm using a PIC24EP512 MCU.

Compiling with RC5 receive mode in interupt mode does give a compiler error.





Device: PIC16.24E.24EP512GU810
Generated by: Flowcode v9.1.0.27
Date: Tuesday, June 08, 2021 21:25:58
Users: 1
Registered to: pschoon (51737870)
Licence key: DVTHUA
https://www.flowcode.co.uk
Using <PICkit3 PK3CMD External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC16\batchfiles\pic16_C30_comp.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\" "xxxxxxxx\Flowcode\FC9\V2.01_20210527\" "24EP512GU810"

D:\xxxxxxxxxx\Flowcode\FC9\V2.01_20210527>REM CRC: 54CD51B8F484283E91B3AD9DE6F4F50C418D34178E0D3D0BD2659E1DA9D69F58D3529BB9468CFC85641793EB31F94A5F16CBA8333F125C7188ED8742865A1BBCF23BFF3064C25A11BAFA61B701B8D046FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D79589982C048EB639EACAAE95EDF8CE67A1404D62B8878703E3665631EAF018A0B6018ACC8FF364DB19D83FB389861B26F27604A1F36255EB2E4245255911F067119BEF7D5F89C133B93261A29D848A5DAD12E38FF9E5CFBC45304482C3050DA273BE4EE7BE17FF2C8D6682CC92500D002AE6523670B0FC1268FBABF2E2E537ED3A62AD834F73E07AA889468

D:\SC-Server\Projecten\DiDiT High-End\DAC212\DAC212SE_Rev.201\Flowcode\FC9\V2.01_20210527>REM REVISION: 1.0

D:\SC-Server\Projecten\DiDiT High-End\DAC212\DAC212SE_Rev.201\Flowcode\FC9\V2.01_20210527>REM GUID: 7821ABE5-9E21-4744-81B7-3FF600B75DB7

D:\SC-Server\Projecten\DiDiT High-End\DAC212\DAC212SE_Rev.201\Flowcode\FC9\V2.01_20210527>REM DATE: 29\03\2021

D:\SC-Server\Projecten\DiDiT High-End\DAC212\DAC212SE_Rev.201\Flowcode\FC9\V2.01_20210527>REM DIR: FCD\PIC16\batchfiles\pic16_C30_comp.bat

D:\SC-Server\Projecten\DiDiT High-End\DAC212\DAC212SE_Rev.201\Flowcode\FC9\V2.01_20210527>xc16-gcc -c -mcpu="24EP512GU810" -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 "V2.01_20210527".c -o "V2.01_20210527".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
V2.01_20210527.c: In function 'FCD_01bf1_RC5__RXEnable':
V2.01_20210527.c:1458:4: error: 'INT0EP' undeclared (first use in this function)
V2.01_20210527.c:1458:4: note: each undeclared identifier is reported only once for each function it appears in
V2.01_20210527.c: At top level:
V2.01_20210527.c:3025:2: error: redefinition of '_T1Interrupt'
V2.01_20210527.c:2993:12: note: previous definition of '_T1Interrupt' was here

Error returned from [xc16-gcc.exe]

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PIC16\batchfiles\pic16_C30_comp.bat reported error code 0x1

Autoclose turned off


FINISHED






If compiling with RC5 receive in timer mode compiling does work but no working results...
I tested the system with the FC RC5 example.

I prefer the interrupt solution to use.

Any clue?

Re: RC5 decoder with PIC24EP512 compiler issue

Posted: Tue Jun 08, 2021 10:48 pm
by kersing
Please do not use color coding, not everyone uses the dark theme and it is impossible to read green text on a light blue background. Use [ code ] tags for code or machine output.