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.


Messages - Tim_Cole

Pages: [1] 2
1
Thanks very much for this.

2
Hi Paul,
Thanks for this. I got this message via e-mail and downloaded the zip file. I'll look it over later today.
It certainly looks as though updating the syntax is time-consuming and tedious job. You really have to wonder why the avr-gcc gurus didn't provide some kind of backward compatibility switch, even if it resulted in blaring warnings about deprecated features.

Regards, Tim

3
I've looked over the FTDI website and found nothing. As nearly as I can tell, a major revision to the GCC-AVR compiler broke this code after 1.5.6.

There doesn't seem to be a solution from FTDI, and it would appear that Newhaven is doing little more than repackaging the FTDI code.  This isn't a good situation, and I'm annoyed with the lack of response.

4
Gotta love changes that break existing code....

5
Okay, I just installed the Arduino 1.0.6 IDE on my laptop, installed the FTDI 800/801 library and compiled the HelloWorld example. That worked properly. So, something got broken between 1.0.6 and 1.6.12.

6
I'll give it it a shot on a laptop I don't normally use for programming. Call me paranoid, but I don't want to muck up my existing setup.

7
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.

8
Evaluation Tools / Re: NHD-4.3CTP-Shield library appears to be invalid
« on: October 22, 2016, 01:11:02 AM »
Ah -- I think I see the problem. It looks like the IDE doesn't recognize the contents of the ZIP file as valid, perhaps because it couldn't find any cpp files. So, I've used the older manual installation procedure of unpacking and copying.

9
Evaluation Tools / Re: NHD-4.3CTP-Shield library appears to be invalid
« on: October 19, 2016, 04:35:23 PM »
Here's the problem:
1) Start up the Arduino IDE
2) Navigate to Sketch->Include->Add .ZIP library....
3) Select FTDI_FT801-master.zip (which I just downloaded from GitHub before replying)
4) The IDE responds with: "Zip doesn't contain a library"

I've used this procedure many times with other ZIP libraries.

So, do you have any idea about the silly error I'm undoubtedly making?
Cheers, Tim


10
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?

11
TFTs / Re: TFT 7-inch Sample Code Questions
« on: December 30, 2014, 02:12:32 PM »
Thanks for the quick reply, Micheal. It's a relief to know that I've downloaded the correct documentation --- which is all that really matters.

Once again,  you folks really come through with customer service. It's one of the best reasons for doing business with you.

Regards, Tim

12
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

13
TFTs / Re: NHD-7.0-800480EF-20 Color Modes
« on: December 18, 2014, 02:26:04 PM »
Hi Paul,
Thanks for the quick answer.

Just to clarify, is there anything more needed to specifying the color mode than simply sending the correct command to the SSD-1963?

Cheers, Tim

14
TFTs / Re: NHD-7.0-800480EF-20 Pinout
« on: December 18, 2014, 02:23:18 PM »
Thanks Micheal,

Newhaven's customer service is, as usual, excellent. It's always a pleasure doing business with you.

Cheers, Tim


15
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

Pages: [1] 2