7:51 pm
August 5, 2015
I have an application where I am trying to use multiple serial ports on a Mega 256 to communicate between the computer and a serial device. My intent is to use the USB/Serial interface with the computer for development and debugging. I've eliminated all of the code except opening and closing the comm ports, 0 and 1. I receive the following error:
1.0.0.18, Arduino Mega or Mega 2560
Loading configuration...
Initializing packages...
Preparing boards...
Verifying and uploading...
temp:14: error: redefinition of 'HardwareSerial* _Serial [4]'
temp:12: error: 'HardwareSerial* _Serial [4]' previously declared here
redefinition of 'HardwareSerial* _Serial [4]'
Is this not possible, or am I doing something wrong?
Thanks!
8:58 pm
March 12, 2015
Hi threelock,
Thank you for bringing this to our attention. This is definitely supposed to work, however, it looks like a change made in Version 1.0.0.17 is causing the compilation error. I have created Case 118 for this issue. We will address this in the next release, which will hopefully go out in 1-2 weeks.
In the meantime, a possible workaround would be to install version 1.0.016 and see if your VI compiles.
Also, the problem does not occur between any combination of serial ports that does not include the default one (e.g. 1 and 2, 1 and 3, etc.) but Im sure you probably need the default port for the PC interface. If you are hardware savvy, you could also jumper another port's TX/RX lines to the RS-232 transceiver on the board by removing these resistors and tapping them in here.
Steffan
3:53 am
March 12, 2015
FYI, version 1.0.0.19 has been released which resolves Case 118 above and should be available for download on the LabVIEW Tools Network and VI Package Manager in the next few days. See here for complete release notes.
15
1 Guest(s)