Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile with PIC32MX #91

Open
sstaub opened this issue Jul 21, 2018 · 1 comment
Open

Can't compile with PIC32MX #91

sstaub opened this issue Jul 21, 2018 · 1 comment

Comments

@sstaub
Copy link
Contributor

sstaub commented Jul 21, 2018

Using a Fubarino Mini board, when compiling I get following messages:

Arduino: 1.8.5 (Mac OS X), Board: "Fubarino Mini, 48MHz, Serial"

In file included from /Users/sstaub/Development/PIC32/Fubarino Mini/OSC Arduino IDE/osc/osc.ino:61:0:
/Users/sstaub/Documents/Arduino/libraries/OSC/SLIPEncodedSerial.h:48:7: error: conflicting return type specified for 'virtual void SLIPEncodedSerial::write(uint8_t)'
void write(uint8_t b);
^
In file included from /Users/sstaub/Library/Arduino15/packages/chipKIT/hardware/pic32/2.0.5/cores/pic32/HardwareSerial.h:53:0,
from /Users/sstaub/Library/Arduino15/packages/chipKIT/hardware/pic32/2.0.5/cores/pic32/WProgram.h:22,
from /Users/sstaub/Library/Arduino15/packages/chipKIT/hardware/pic32/2.0.5/cores/pic32/Arduino.h:4,
from sketch/osc.ino.cpp:1:
/Users/sstaub/Library/Arduino15/packages/chipKIT/hardware/pic32/2.0.5/cores/pic32/Print.h:49:20: error: overriding 'virtual size_t Print::write(uint8_t)'
virtual size_t write(uint8_t) = 0;

                ^

In file included from /Users/sstaub/Development/PIC32/Fubarino Mini/OSC Arduino IDE/osc/osc.ino:61:0:
/Users/sstaub/Documents/Arduino/libraries/OSC/SLIPEncodedSerial.h:49:10: error: conflicting return type specified for 'virtual void SLIPEncodedSerial::write(const uint8_t*, size_t)'
void write(const uint8_t buffer, size_t size);
^
In file included from /Users/sstaub/Library/Arduino15/packages/chipKIT/hardware/pic32/2.0.5/cores/pic32/HardwareSerial.h:53:0,
from /Users/sstaub/Library/Arduino15/packages/chipKIT/hardware/pic32/2.0.5/cores/pic32/WProgram.h:22,
from /Users/sstaub/Library/Arduino15/packages/chipKIT/hardware/pic32/2.0.5/cores/pic32/Arduino.h:4,
from sketch/osc.ino.cpp:1:
/Users/sstaub/Library/Arduino15/packages/chipKIT/hardware/pic32/2.0.5/cores/pic32/Print.h:54:20: error: overriding 'virtual size_t Print::write(const uint8_t
, size_t)'
virtual size_t write(const uint8_t *buffer, size_t size);

                ^

osc:62: error: no matching function for call to 'SLIPEncodedSerial::SLIPEncodedSerial(CDCACM&)'
SLIPEncodedSerial SLIPSerial(Serial);
^
/Users/sstaub/Development/PIC32/Fubarino Mini/OSC Arduino IDE/osc/osc.ino:62:36: note: candidates are:
In file included from /Users/sstaub/Development/PIC32/Fubarino Mini/OSC Arduino IDE/osc/osc.ino:61:0:
/Users/sstaub/Documents/Arduino/libraries/OSC/SLIPEncodedSerial.h:26:2: note: SLIPEncodedSerial::SLIPEncodedSerial(HardwareSerial&)
SLIPEncodedSerial(HardwareSerial & );
^
/Users/sstaub/Documents/Arduino/libraries/OSC/SLIPEncodedSerial.h:26:2: note: no known conversion for argument 1 from 'CDCACM' to 'HardwareSerial&'
/Users/sstaub/Documents/Arduino/libraries/OSC/SLIPEncodedSerial.h:14:7: note: constexpr SLIPEncodedSerial::SLIPEncodedSerial(const SLIPEncodedSerial&)
class SLIPEncodedSerial: public Stream{
^
/Users/sstaub/Documents/Arduino/libraries/OSC/SLIPEncodedSerial.h:14:7: note: no known conversion for argument 1 from 'CDCACM' to 'const SLIPEncodedSerial&'
/Users/sstaub/Documents/Arduino/libraries/OSC/SLIPEncodedSerial.h:14:7: note: constexpr SLIPEncodedSerial::SLIPEncodedSerial(SLIPEncodedSerial&&)
/Users/sstaub/Documents/Arduino/libraries/OSC/SLIPEncodedSerial.h:14:7: note: no known conversion for argument 1 from 'CDCACM' to 'SLIPEncodedSerial&&'
exit status 255
no matching function for call to 'SLIPEncodedSerial::SLIPEncodedSerial(CDCACM&)'

@sstaub
Copy link
Contributor Author

sstaub commented Aug 12, 2018

One of the problem is, that the Arduino IDE loads an old library version. library.properties should updated to the last release.
The second problem is that the includes and constructors in SLIPEncodedUSBSerial.h are wrong.
Also many other things, I can't figured out in the moment.
I started with an old version and solved the problem with deleting old write functions.
Third, why is support for maple_mini deleted, there are many Chinese copies on the market?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant