Help needed to configure NHD-4.3RTP-SHIELD-N with Ardunio Due
Hi,
I have just purchased the NHD-4.3RTP-SHIELD-N for a project that will require the Arduino Due. The Arduino Due is needed in order to drive a couple Hall Effect actuators. I have just installed the Arduino Due with the NHD-4.3RTP-SHIELD-N and downloaded the recommended FTDI_FT800 library. I proceeded to load the "Hello World" example sketch to verify the operation. However, I could not even able to compile due to numerous errors:
"Arduino: 1.8.10 (Windows 10), Board: "Arduino Due (Programming Port)"
In file included from C:\Users\IH Non-Admin\Documents\Arduino\libraries\FTDI_FT800\examples\FT_NHD_43RTP_SHIELD\Basic\HelloWorld\HelloWorld.ino:30:0:
C:\Users\IH Non-Admin\Documents\Arduino\libraries\FTDI_FT800/FT_NHD_43RTP_SHIELD.h:44:37: error: conflicting declaration 'typedef const unsigned char prog_uchar'
typedef PROGMEM const unsigned char prog_uchar;
^
In file included from C:\Users\IH Non-Admin\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\cores\arduino/Arduino.h:31:0,
from sketch\HelloWorld.ino.cpp:1:
C:\Users\IH Non-Admin\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\cores\arduino/avr/pgmspace.h:40:23: error: 'prog_uchar' has a previous declaration as 'typedef unsigned char prog_uchar'
typedef unsigned char prog_uchar;
^
In file included from C:\Users\IH Non-Admin\Documents\Arduino\libraries\FTDI_FT800\examples\FT_NHD_43RTP_SHIELD\Basic\HelloWorld\HelloWorld.ino:30:0:
C:\Users\IH Non-Admin\Documents\Arduino\libraries\FTDI_FT800/FT_NHD_43RTP_SHIELD.h:45:28: error: conflicting declaration 'typedef const char prog_char'
typedef PROGMEM const char prog_char;
….
Multiple libraries were found for "SPI.h"
Used: C:\Users\Tuan
Multiple libraries were found for "Wire.h"
Used: C:\Users\Tuan
Multiple libraries were found for "FT_NHD_43RTP_SHIELD.h"
Used: C:\Users\Tuan
exit status 1
Error compiling for board Arduino Due (Programming Port).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Sorry for the long error snipet. Could you please tell me why the code won't compile? I thought this is a simple test file that have been thoroughly vetted.
Thank you for any assistance that you can provide.
-
Hi,
The Hello World example code was written to be used with the Arduino UNO and therefore will not compile on the DUE without software changes.
We recommend running the NHD-4.3RTP-SHIELD-N with a 5v version Arduino such as the UNO, Mega 2560 or other 5V compatible versions as the SHIELD requires to be driven with a 5V source as listed in our user guide.
Unfortunately the Arduino Due is not compatible with the SHIELD as it would supply it with only 3.3v volts.
Best Regards,0
Please sign in to leave a comment.
Comments
1 comment