Hi,
Im trying to use the USB serial coms macro to communicate between the arduino UNO and a Rasberry Pi
The test programme is very simple, just flashing an LED. Without the usb serial initialise macro, programme compiles to chip and works, but as soon as I add the usb serial initialise macro, the system will not compile to hex and displays the attached error message. Am I doing something wrong?
Regards,
Chris
USB serial initialisation not compiling
Moderator: Benj
-
- Posts: 186
- Joined: Wed Jan 23, 2013 3:43 pm
- Has thanked: 2 times
- Been thanked: 21 times
- Contact:
USB serial initialisation not compiling
- Attachments
-
- Error1.png
- (49.44 KiB) Downloaded 1465 times
-
- USB test1.fcfx
- (9.8 KiB) Downloaded 205 times
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: USB serial initialisation not compiling
Last time I checked the controller of the uno did not support USB. The USB serial on the uno is a separate chip which is connected to RX/TX of the controller (atmega328p).
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- 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: USB serial initialisation not compiling
Yes Kersing is right, you need to use the UART component rather than the USB Serial component on the Arduino Uno board.
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