full functionality of this site and enable such things as forum posting.
Digisol:
Hi there!
My first post here, I have built my own board from the Max32 circuit diagrams.
I am trying to use serial port 5, but got an error "undefined reference to `Serial5'"
I am using "uecide-0.10.6-bundle.exe" because Bitdefender says "This app has been blocked for your protection"
uecide.exe "Atc4.Detection"
I already edited "Board_Defs.h" file and set 6 serial ports and included port 4 & 5 definitions for them as Majenko said in http://chipkit.net/forum/viewtopic.php?f=17&t=3139&p=13058&hilit=max32+serial+port#p13056.
My code: (Bare minimum)
void setup(){
Serial5.begin(19200);
}
void loop(){
{;}
}
Gives this error:
Compiling...
• Preprocessing...
• Converting binary files
• Compiling sketch...
• Compiling core...
? api
• Compiling libraries...
• Linking sketch...
C:\Users\XXXX\Documents\UECIDE\Serial_test\build\Serial_test_combined.cpp.o: In function setup': c:/users/XXXX/documents/uecide/serial_test/serial_test.ino:3: undefined reference to
Serial5'
collect2.exe: error: ld returned 255 exit status
Compiling Failed
Thanks in advance for any help.
matt:
The error is during the linking phase. Chances are the cached version of the core doesn't know about your changes.
Just hold "Shift" while pressing the compile button to clear out the cache before compiling. It should pick up the changes to the board definition files by recompiling the core.
As far as BitDefender goes: there are people all over the internet complaining that BitDefender is finding that "malware" in lots of things where it isn't - and that "malware" doesn't even seem to exist. BitDefender's website doesn't even have the phrase anywhere on it.