Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Tim_Cole

Pages: [1]
1
Greeting folks
It looks like I've fixed my library installation finger trouble, which has moved me ahead to another problem. I've started with the venerable "Hello, world" example. Compiling produces the following errors, copied from the IDE with the "Copy error messages" button.

Help!

----


Arduino: 1.6.12 (Windows 10), Board: "Arduino/Genuino Uno"

WARNING: Category '' in library OneWire is not valid. Setting to 'Uncategorized'
In file included from C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/FT_NHD_43CTP_SHIELD.h:67:0,

                 from C:\Program Files (x86)\Arduino\libraries\FTDI_FT801\examples\FT_NHD_43CTP_SHIELD\Basic\HelloWorld\HelloWorld.ino:30:

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_Transport_SPI/FT_Transport_SPI.h:215:37: error: 'prog_uchar' has not been declared

  void Writefromflash(uint32_t Addr, prog_uchar *Src, uint32_t NBytes)

                                     ^

In file included from C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/FT_NHD_43CTP_SHIELD.h:68:0,

                 from C:\Program Files (x86)\Arduino\libraries\FTDI_FT801\examples\FT_NHD_43CTP_SHIELD\Basic\HelloWorld\HelloWorld.ino:30:

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:330:32: error: 'prog_uchar' has not been declared

  FT_GEStatus WriteCmdfromflash(prog_uchar *Src,uint32_t NBytes);

                                ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:334:35: error: 'prog_uchar' has not been declared

  FT_GEStatus TransferCmdfromflash(prog_uchar *Src,uint32_t NBytes);

                                   ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/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:\Program Files (x86)\Arduino\libraries\FTDI_FT801/FT_NHD_43CTP_SHIELD.h:68:0,

                 from C:\Program Files (x86)\Arduino\libraries\FTDI_FT801\examples\FT_NHD_43CTP_SHIELD\Basic\HelloWorld\HelloWorld.ino:30:

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/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)

                                                                                                                                                                                                                                                                  ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1670:52: error: 'FT_GEStatus FT_GC<FT_Trans>::TransferCmdfromflash' is not a static member of 'class FT_GC<FT_Trans>'

 FT_GEStatus FT_GC<FT_Trans>::TransferCmdfromflash( prog_uchar *Src,uint32_t NBytes)

                                                    ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1670:52: error: template definition of non-template 'FT_GEStatus FT_GC<FT_Trans>::TransferCmdfromflash'

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1670:52: error: 'prog_uchar' was not declared in this scope

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1670:64: error: 'Src' was not declared in this scope

 FT_GEStatus FT_GC<FT_Trans>::TransferCmdfromflash( prog_uchar *Src,uint32_t NBytes)

                                                                ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1670:77: error: expected primary-expression before 'NBytes'

 FT_GEStatus FT_GC<FT_Trans>::TransferCmdfromflash( prog_uchar *Src,uint32_t NBytes)

                                                                             ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1780:49: error: 'FT_GEStatus FT_GC<FT_Trans>::WriteCmdfromflash' is not a static member of 'class FT_GC<FT_Trans>'

 FT_GEStatus FT_GC<FT_Trans>::WriteCmdfromflash( prog_uchar *Src,uint32_t NBytes)

                                                 ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1780:49: error: template definition of non-template 'FT_GEStatus FT_GC<FT_Trans>::WriteCmdfromflash'

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1780:49: error: 'prog_uchar' was not declared in this scope

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1780:61: error: 'Src' was not declared in this scope

 FT_GEStatus FT_GC<FT_Trans>::WriteCmdfromflash( prog_uchar *Src,uint32_t NBytes)

                                                             ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT_GC.h:1780:74: error: expected primary-expression before 'NBytes'

 FT_GEStatus FT_GC<FT_Trans>::WriteCmdfromflash( prog_uchar *Src,uint32_t NBytes)

                                                                          ^

In file included from C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/FT_NHD_43CTP_SHIELD.h:69:0,

                 from C:\Program Files (x86)\Arduino\libraries\FTDI_FT801\examples\FT_NHD_43CTP_SHIELD\Basic\HelloWorld\HelloWorld.ino:30:

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT801/FT801Impl.h:124:73: error: redeclaration of 'FT_Status FT801Impl<FT_Trans>::Init(uint8_t, uint16_t)' may not have default arguments [-fpermissive]

 FT_Status FT801Impl<FT_Trans>::Init(uint8_t ResType, uint16_t options1=0)

                                                                         ^

C:\Program Files (x86)\Arduino\libraries\FTDI_FT801/libraries/FT_GC/FT801/FT801Impl.h:133:71: error: redeclaration of 'FT_Status FT801Impl<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 Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

2
Evaluation Tools / NHD-4.3CTP-Shield library appears to be invalid
« on: October 19, 2016, 01:19:48 AM »
Greetings all,
The Arduino development environment (I'm using 1.6.12) can't find a valid library in the file download from: https://github.com/NewhavenDisplay/FTDI_FT801

I didn't notice any cpp files in there, so it looks to me that there's something missing. It's probably finger trouble on my part, but can you suggest where I can look for the library?

3
TFTs / TFT 7-inch Sample Code Questions
« on: December 26, 2014, 12:03:35 AM »
Greetings and Happy New Year!
While working through the sample code files TFT_7_0.c and Arduinio_nhd-7_0-800480EF.ino, I've found puzzling register settings for initialization settings.

Looking at TFT_7_0.c, I notice in function TFT_7_Init
  TFT_7_Write_Command(0xb0);      //SET LCD MODE  SET TFT 18Bits MODE
  GPIO_SetBits(GPIOC, RS);
  TFT_7_Write_Data(0x08);         //SET TFT MODE & hsync+Vsync+DEN MODE

This first parameter suggests that FRC (which I assume is "Frame Rate Control") is turned on, which would make sense for 18-bit pixels (as described in in the old data sheet for an 8-bit MCU interface). But, wouldn't it be best to specify 24-bit pixels?

Next, I notice the line:

   TFT_7_Command_Write(0x3a, 0x60) // SET R G B format = 6 6 6
However, the data sheet now describes command 0x3A as reserved.

A little farther down:
  TFT_7_Write_Command(0xe2);         //SET PLL freq=113.33MHz
  GPIO_SetBits(GPIOC, RS);
  TFT_7_Write_Data(0x22);
  TFT_7_Write_Data(0x03);
  TFT_7_Write_Data(0x04);

 
Using the formula in the section describing command 0xE2 (set_pll_mn) yields fVCO = 350 MHz and fPLL = 87.5 MHz

And:
  TFT_7_Write_Command(0xe6);         //SET PCLK freq=33.26MHz
  GPIO_SetBits(GPIOC, RS);
  TFT_7_Write_Data(0x02);
  TFT_7_Write_Data(0xff);
  TFT_7_Write_Data(0xff);


Using the formula in the section describing command 0xE6 (set_lshift_freq) yields fPCLK = 0.1875 fPLL = 16.41 MHz
When I downloaded a new copy of the SSD1963 data sheet from your Application Notes section, I noticed it is now Rev 1.1, dated Jan 2010. The data sheet I'd previously downloaded was Rev 0.20, dated Dec 2008. There are a few significant differences. In particular, commands 0x0C and 0x3A have been removed, the formulas for calculating PLL frequencies have changed (as described in the section on command 0xE2), and the pixel data format table (Table 7.1) shows LSBs for R,G, and B bytes are no longer marked as don't cares. I suspect this might have something to do with the oddities I've mentioned.

Folks, I'm not trying to be a pedantic PITA here. What I'm concerned about is that I mightn't have the right data sheet for the SSD1963  -- perhaps this new data sheet doesn't describe the devices you're using. And, of course, I might not have understood the data sheet properly.

Could you folks take a quick  look at the data sheet and the sample code to see if they reflect the devices you're shipping in the NHD-7.0-800480EF series controller boards?

Regards,
Tim Cole

4
TFTs / NHD-7.0-800480EF-20 Color Modes
« on: December 17, 2014, 07:26:17 PM »
Just to keep things organized, I  thought I'd raise this as a separate question.

Does the NHD-7.0-800480EF-20 support only 24-bit BGR pixels, or can I use any of the other SSD-1963 color modes?

Regards,
Tim Cole

5
TFTs / NHD-7.0-800480EF-20 Pinout
« on: December 16, 2014, 11:17:42 PM »
Greetings,
As I understand it, the user MPU interfaces with this controller as if it were an SSD-1963 controller. However, there are a few details that the NHD-7.0-800480EF-20 spec doesn't seem to cover.

1) Does the MPU see the SSD-1963 TE signal, or does the NHD-7.0-800480EF-20 handle tearing control?

2) B/L Enable: this is described as  "Power Supply." The two descriptions don't seem to match, but I do want to control the backlight. How should the pin be used? In particular, what current does the MPU pin have to source or sink?

3) DISP: An early reply to a customer indicated this pin (and the B/L Enable) can be left unconnected. However, can I use this pin to temporarily blank the display?

 Regards,
Tim Cole


6
Character LCDs / HD44780 8-bit Initialization Rationale
« on: September 15, 2014, 12:56:50 AM »
Greetings all,
I'm using an old vanilla HD44780-style LCD screen, and for the first time, I'm using 8-bit mode. Every piece of example code I've shows setting 8-bit interface mode by writing 0x30 three times, with varying delays between writes. The hex value makes perfect sense, I won't argue with a method that's known to work, but why do you write it three times?

Cheers, Tim

Pages: [1]