Page 1 of 1

SOLVED: Critical Compile Error (Arduino Mega 2560)

Posted: Thu Feb 17, 2022 2:21 pm
by Brendan
Hi Guys.

I've ported a working project from PIC to ATMEGA2560 with 16MHz Xtal for professional application, so I'm using FC9 build option: 'Arduino Mega 2560' for the project.

However, compile critically fails with the following message:
Device: ARD.ATMEGA.ATMEGA2560
Generated by: Flowcode v9.2.0.33
Date: Thursday, February 17, 2022 15:55:55
Users: 1
Registered to: *******(********)
Licence key: ******
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\AVR\batchfiles\avra.bat "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\" atmega2560 "C:\Flowcode_Project_Development\ATMEGA2560 PORT and TIDY-UP 170222A.elf" "C:\Flowcode_Project_Development\ATMEGA2560 PORT and TIDY-UP 170222A.c" "C:\Flowcode_Project_Development\ATMEGA2560 PORT and TIDY-UP 170222A.lst"

C:\Flowcode_Project_Development>REM CRC: EA277D0C7EF9B4E537B79187D0BE7A25FA6080B4B01BE48BAF713429E4B690411241251B4A05C2B5828F4452C9F7348705C640EF477B79E0C7881D2E5EEC9BD6FE0D8D4660AC0314F98C28BCA92AF856EFD1DB5B777140BC4D00059D7958998291880A09BBE74CF7BA3F4E37F13004EE3637760F1F0B7DA0CC623CD30E3C7D6BAB4C3FE6151D92B8EC0ADD55E96639DAC02472BDE3806EF43AE3A028BD32A5DAE68BB191DA97CB6883A66D3C41849952BB2DD264AF32733E2C3050DA273BE4EEFF12703F3DAF67B119A5A5B069403B38249A6C4D8A1304B09A437E7E2D43FD26DF891DB3086C82D6

C:\Flowcode_Project_Development>REM REVISION: 1.0

C:\Flowcode_Project_Development>REM GUID: EA0828B2-5C70-41A5-8C54-F359DD5CC88B

C:\Flowcode_Project_Development>REM DATE: 29\03\2021

C:\Flowcode_Project_Development>REM DIR: FCD\AVR\batchfiles\avra.bat

C:\Flowcode_Project_Development>"C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\bin\avr-gcc.exe" -mmcu=atmega2560 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Flowcode_Project_Development\ATMEGA2560 PORT and TIDY-UP 170222A.elf" "C:\Flowcode_Project_Development\ATMEGA2560 PORT and TIDY-UP 170222A.c" -lm -Wl,-gc-sections
C:\Flowcode_Project_Development\ATMEGA2560 PORT and TIDY-UP 170222A.c:542:20: fatal error: config.h: No such file or directory
Use :Include the chip adaption layer
^
compilation terminated.

??? :o

This may be obvious to Arduino aficionados, though I'm still in the dark for what is my first AVR project using FC9 so any clues/advice appreciated to help me get compilation over the line. Possibly a FC bug but I don't feel able to comment.

Once complete I'll be able to program with Microchip Studio.

Thanks in advance,
Brendan

Re: SOLVED: Critical Compile Error (Arduino Mega 2560)

Posted: Tue Feb 22, 2022 10:38 am
by Brendan
I can confirm the issue was the result of porting across the USB Serial component unsupported by ATMEGA2560, identified by kind support from the Matrix community.

Having replaced USB Serial with the UART component, I can happily confirm that the project compiled, programmed to an ATMEGA2560 Pro (MBED Arduino clone) via Microchip Studio, and is fully operational.