ralph

VGA Example Problem - can't find Adafruit_GFX.h

Recommended Posts

I've got a Papilio Duo with a Logic Start shield.

 

In DesignLab 1.0.4, I selected ZPUino_VGA_Adapter, and then edited the source so that it corresponded to Duo + Logic Start Shield, commenting out the other options.

 

However, it now says

 

Build options changed, rebuilding all
Demo.ino:32:26: fatal error: Adafruit_GFX.h: No such file or directory
 
I guess this is a simple fix: how do I proceed?
 
Thanks!
 
Ralpg

Share this post


Link to post
Share on other sites

OK, I fixed that by downloading the Adafruit =GFX library and putting it in the libraries folder, but now I am getting

 

Demo.ino:33:24: fatal error: ZPUino_GFX.h: No such file or directory
compilation terminated.
 
Seems like some needed files are not included with DesignLab 1.0.4.
 
Hopefully they can be included in the next release...

Share this post


Link to post
Share on other sites

OK, even fixed the ZPUino_GFX.h erro, but now it can't find pll.h. There are too many possibilities for fixing that, so I guess I need to wait until Alvieboy / Jack fix up DesignLab to include the necessary libraries...

Share this post


Link to post
Share on other sites

Hello Ralph,

 

I think the most likely culprit here is that the wrong board is being selected. Please verify that you have gone to Tools/board/Papilio FPGA boards and selected the Papilio DUO FPGA 2MB - ZPUino or the 512KB version.

 

Then it should be able to find the correct libraries - those libraries are specific to the ZPUino board types. You can verify that the libraries are there by going to your designlab root directory then hardware\zpuino\zpu20\libraries

 

Jack.

Share this post


Link to post
Share on other sites

Thanks, Jack. I was selecting Papilio Duo - AVR instead of Papilio Duo FPGA 2MB. 

I've also selected the COM port.

Now that I have fixed that, however I get a different problem

 

Cannot get programmer version, aborting

 
Could not contact ZPUino embedded programmer.
The more common reasons for this are:
 
a) You are not specifying the correct port. The port currently selected is 'COM15'
B) The board FPGA is not programmed with a valid ZPUino bitfile.
c) The board is properly not powered.
 
Please review all of above, if problem persists please contact support.

Share this post


Link to post
Share on other sites

OK, forgot to upload the circuit before trying to load the AVR program. All is well now (well, 90% - my monitor is displaying not supported, but otherwise, basically drawing most of the input with some off-screen). Anyway, it's basically working thanks.

Share this post


Link to post
Share on other sites

It's some cheap non-branded monitor that doesn't like what it considers to be non-standard refresh rates. Anyway, it all works at 640 x 384 x 60.

 

Just one question - if 1024 x 768 x 60 is not possible with a DUO, is there any chance that 1024 x 768 x 30 could work?

 

A higher resolution with a lower refresh rate would be handy.

Share this post


Link to post
Share on other sites

1024x768@60 should work in RGB332 mode. I finished the implementation yesterday, but did not test all resolutions. Will do so today.

 

Alvie

Share this post


Link to post
Share on other sites

1024x768 60HZ with RGB332 works:

 

IMG_20150401_210915.jpg

 

 

1280x1024 60Hz does not work properly with DUO, unless CPU is not accessing memory. Should work with Papilio Pro, though.

 

Here's how it looks like with DUO, but only after CPU stops writing image to memory:

 

IMG_20150401_211402.jpg

 

Alvie

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now