November 22, 2024, 11:31:43 PM

Gameduino compiler issue

Started by 20loic, March 21, 2014, 12:02:21 PM

Previous topic - Next topic

20loic

Hi,

I've purchased a gameduino MOD VGA shield
I'm using arduino 1.0.5
I've installed the libraries

I'm having some issue trying to run the sample program Hello World

compiler error:
In file included from GD.cpp:242:0:
font8x8.h:1:35: error: variable 'font8x8' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

Can someone please help me.

Thank you

20loic

LubOlimex

Hello 20loic,

You are trying to use a general example that is built-in Arduino IDE.

You should check the examples made for Gameduino located in the library that is downloaded from the web-page of the device.

To use this library in a sketch, go to the Sketch | Import Library menu and select Gameduino.

This library features a number examples. After installation (extracting the archive and proper placement in libraries folder, you can find the exampls under File | Examples | Gameduino.  'selftest' is a good example to start with, since it runs a series of hardware tests (note that the flash test may fail because we use different flash memory. The software is configured for AT45DB021D and we use AT45DB041D. The flash we mount is actually bigger than the original one. If the board has defective flash memory it won't load any code - even the selftest)..

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex