Page 1 of 1

PIC16F18426 Compiler error.

Posted: Fri Feb 06, 2026 9:35 am
by DirkB
Hello,

I ported a project from PIC16F1825 to PIC16F18426. PIC16F18426 does not have MIDI component and DAC component functions. If I create a project with only these two components, I get an error message.

new project:
  • https://www.flowcode.co.uk
    Error creating C source code:
    test-18426.c : 208 : error : Syntax error
    Autoclose turned off

    TERMINATED
portet project:
  • E:\Flowcode\V10\2025\Bambledrive\Final>"C:\Program Files\Microchip\xc8\v2.50\bin\xc8-cc.exe" -mcpu=16F18426 "Bambledrive-16F18426-V.2.5.c" -w=359,1273,1388 -fshort-float -fshort-double -std=c90 -Os
    C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_DAC.c:298:1: error: (192) undefined identifier "DACCON0"
    C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_DAC.c:311:1: error: (192) undefined identifier "DACCON1"
    C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_DAC.c:317:1: error: (192) undefined identifier "DACCON0"
    C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC\PIC_CAL_UART.c:590:1: error: (192) undefined identifier "RX1DTPPS"
    (908) exit status = 1

    Error returned from [xc8.exe]

    C:\Program Files (x86)\Flowcode\Common\Compilers\picv2\batch\pic_xc8_comp.bat Hat den Fehlercode 0x1 gemeldet

    Autoclose turned off

    TERMINATED

Re: PIC16F18426 Compiler error.

Posted: Fri Feb 06, 2026 12:39 pm
by BenR
Hello Dirk,

Thanks for letting us know, investigating for you now.

Re: PIC16F18426 Compiler error.

Posted: Fri Feb 06, 2026 12:50 pm
by BenR
This should be fully resolved for you now in both v10 and v11.

Simply go to Help -> Library Updates to get the latest definition files.

Let us know if you come across any further issues.

Re: PIC16F18426 Compiler error.

Posted: Fri Feb 06, 2026 1:22 pm
by DirkB
Hi Ben,

The ported project now compiles without errors, thank you for that. Here is a very small program. It runs without errors in the simulation, but produces an error message during compilation. What have I overlooked?
  • Error creating C source code:
    test-18426.c : 208 : error : Syntax error
    Autoclose turned off
thank you

Re: PIC16F18426 Compiler error.

Posted: Fri Feb 06, 2026 4:45 pm
by BenR
Hello Dirk,

Great glad that solved the problem for you.

In your MIDI component properties there is no RX remap pin assigned which is causing your compilation error.

Re: PIC16F18426 Compiler error.

Posted: Wed Feb 11, 2026 5:18 pm
by DirkB
grrrh!!!

thanks ;o)