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?
Compiler error with Leonardo
Moderator: Benj
-
- Posts: 89
- Joined: Wed Aug 31, 2016 4:48 pm
- Been thanked: 4 times
- Contact:
- 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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 89
- Joined: Wed Aug 31, 2016 4:48 pm
- Been thanked: 4 times
- Contact:
Re: Compiler error with Leonardo
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.
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.