Compiler error with Leonardo

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Pascal_2016
Posts: 89
Joined: Wed Aug 31, 2016 4:48 pm
Been thanked: 4 times
Contact:

Compiler error with Leonardo

Post by Pascal_2016 »

Hello,

I'm trying to use an Arduino Leonardo to send data over the USB.

Unfortunately I get some error messages:

D:\PR6751~1\Arduino\Leonardo>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega32u4 -Os -ffunction-sections -fdata-sections -funsigned-char -o "D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.elf" "D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c" -lm -Wl,-gc-sections
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:382:20: error: config.h: No such file or directory
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:384:33: error: lib_mcu/usb/usb_drv.h: No such file or directory
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:386:59: error: modules\usb\device_chap9\usb_standard_request.h: No such file or directory
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:388:34: error: usb_specific_request.h: No such file or directory
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:390:26: error: uart_usb_lib.h: No such file or directory
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:394: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rx_counter'
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:396: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tx_counter'
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:400: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'line_coding'
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:402: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'line_status'
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:404: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'serial_state'
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c: In function 'FCD_056e1_USB_Serial1__SendByte':
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:947: error: 'TX_EP' undeclared (first use in this function)
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:947: error: (Each undeclared identifier is reported only once
D:\PR6751~1\Arduino\Leonardo\FlowcodeTest_USB.c:947: error: for each function it appears in.)


Can someone help me?
Attachments
FlowcodeTest_USB.fcfx
(7.8 KiB) Downloaded 170 times

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

Re: Compiler error with Leonardo

Post by Benj »

Hello,

Please see this topic for more info..
viewtopic.php?f=76&t=21420

Pascal_2016
Posts: 89
Joined: Wed Aug 31, 2016 4:48 pm
Been thanked: 4 times
Contact:

Re: Compiler error with Leonardo

Post by Pascal_2016 »

Hello Benj,

I've made all the recommended changes. I was also able to fix the compiler errors. Unfortunately the USB Serial does not send any data. The USB interface is recognized but no data is sent.

In my test program I built in a delay of 5s at the very beginning.

Post Reply