Post by k6dhl on Feb 9, 2020 1:58:42 GMT
I'm attempt to migrate code from a DUE to the ShieldBuddy which includes calls to the FTDI FT800 library. I attempted to compile one of their simplest examples and received the following errors:
Arduino: 1.6.11 (Windows 10), Board: "ShieldBuddyTC275_Dx"
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:64:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/hardware/FT800/FT800.h:542:0: warning: "DISPLAY" redefined
#define DISPLAY() ((0UL<<24))
^
In file included from C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/cores/aurduino/Arduino.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/variants/tc275/Variant.h:27,
from <command-line>:0:
C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/cores/aurduino/wiring_constants.h:46:0: note: this is the location of the previous definition
#define DISPLAY 0x1
^
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:66:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_RTC/FT_RTC.h: In member function 'FT_RTCStatus FT_RTC::Read(uint32_t, uint8_t&)':
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_RTC/FT_RTC.h:209:48: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
Wire.requestFrom((uint8_t)I2CAddr, (uint16_t)1);// request length bytes from slave device and end the transmission after this
^
In file included from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:27:0:
C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/libraries/Wire/Wire.h:75:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int, int);
^
C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/libraries/Wire/Wire.h:72:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t, uint8_t);
^
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:68:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT_GC.h: At global scope:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT_GC.h:372:71: error: redeclaration of 'FT_Status FT_GC<FT_Trans>::Init(uint8_t, uint16_t)' may not have default arguments [-fpermissive]
FT_Status FT_GC<FT_Trans>::Init(uint8_t ResType, uint16_t options1 = 0)
^
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:68:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT_GC.h:410:258: error: redeclaration of 'FT_Status FT_GC<FT_Trans>::Init(uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint8_t, uint8_t, uint8_t, uint16_t)' may not have default arguments [-fpermissive]
FT_Status FT_GC<FT_Trans>::Init(uint16_t hperiod,uint16_t vperiod,uint16_t hfrontporch,uint16_t hbackporch,uint16_t hpulsewidth,uint16_t vfrontporch,uint16_t vbackporch,uint16_t vpulsewidth,uint8_t polarity,uint8_t swizzle,uint8_t fps, uint16_t options1 = 0)
^
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:69:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT800/FT800Impl.h:104:73: error: redeclaration of 'FT_Status FT800Impl<FT_Trans>::Init(uint8_t, uint16_t)' may not have default arguments [-fpermissive]
FT_Status FT800Impl<FT_Trans>::Init(uint8_t ResType, uint16_t options1=0)
^
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT800/FT800Impl.h:115:72: error: redeclaration of 'FT_Status FT800Impl<FT_Trans>::Init(uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint8_t, uint8_t, uint8_t, uint16_t)' may not have default arguments [-fpermissive]
uint8_t polarity,uint8_t swizzle,uint8_t fps, uint16_t options1=0)
^
exit status 1
Error compiling for board ShieldBuddyTC275_Dx.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
This code compiles correctly for any other board. You can find a link here to download the FT800 Library for Arduino: www.ftdichip.com/Support/SoftwareExamples/FT800_Projects.htm#Arduino_Specific
Arduino: 1.6.11 (Windows 10), Board: "ShieldBuddyTC275_Dx"
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:64:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/hardware/FT800/FT800.h:542:0: warning: "DISPLAY" redefined
#define DISPLAY() ((0UL<<24))
^
In file included from C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/cores/aurduino/Arduino.h:23:0,
from C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/variants/tc275/Variant.h:27,
from <command-line>:0:
C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/cores/aurduino/wiring_constants.h:46:0: note: this is the location of the previous definition
#define DISPLAY 0x1
^
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:66:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_RTC/FT_RTC.h: In member function 'FT_RTCStatus FT_RTC::Read(uint32_t, uint8_t&)':
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_RTC/FT_RTC.h:209:48: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
Wire.requestFrom((uint8_t)I2CAddr, (uint16_t)1);// request length bytes from slave device and end the transmission after this
^
In file included from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:27:0:
C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/libraries/Wire/Wire.h:75:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int, int);
^
C:\Program Files (x86)\Arduino\hardware\aurduino_Dx/aurix/libraries/Wire/Wire.h:72:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t, uint8_t);
^
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:68:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT_GC.h: At global scope:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT_GC.h:372:71: error: redeclaration of 'FT_Status FT_GC<FT_Trans>::Init(uint8_t, uint16_t)' may not have default arguments [-fpermissive]
FT_Status FT_GC<FT_Trans>::Init(uint8_t ResType, uint16_t options1 = 0)
^
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:68:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT_GC.h:410:258: error: redeclaration of 'FT_Status FT_GC<FT_Trans>::Init(uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint8_t, uint8_t, uint8_t, uint16_t)' may not have default arguments [-fpermissive]
FT_Status FT_GC<FT_Trans>::Init(uint16_t hperiod,uint16_t vperiod,uint16_t hfrontporch,uint16_t hbackporch,uint16_t hpulsewidth,uint16_t vfrontporch,uint16_t vbackporch,uint16_t vpulsewidth,uint8_t polarity,uint8_t swizzle,uint8_t fps, uint16_t options1 = 0)
^
In file included from C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/FT_VM800P43_50.h:69:0,
from C:\Users\dave\Installation Files\Libraries\FTDI_V1.4.0_03272015(FT800)\FT800\examples\FT_VM800P43_50\Basic\FTDILogo\FTDILogo.ino:30:
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT800/FT800Impl.h:104:73: error: redeclaration of 'FT_Status FT800Impl<FT_Trans>::Init(uint8_t, uint16_t)' may not have default arguments [-fpermissive]
FT_Status FT800Impl<FT_Trans>::Init(uint8_t ResType, uint16_t options1=0)
^
C:\Users\dave\OneDrive\Documents\Arduino\libraries\FT800/libraries/FT_GC/FT800/FT800Impl.h:115:72: error: redeclaration of 'FT_Status FT800Impl<FT_Trans>::Init(uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint8_t, uint8_t, uint8_t, uint16_t)' may not have default arguments [-fpermissive]
uint8_t polarity,uint8_t swizzle,uint8_t fps, uint16_t options1=0)
^
exit status 1
Error compiling for board ShieldBuddyTC275_Dx.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
This code compiles correctly for any other board. You can find a link here to download the FT800 Library for Arduino: www.ftdichip.com/Support/SoftwareExamples/FT800_Projects.htm#Arduino_Specific