Getting partition type conflict using M2tklib and glcd

I need help resolving a section type conflict in the arduino program that I am writing. I have a short code example that causes an error:

#include <glcd.h> #include "M2tk.h" #include "utility/m2ghglcd.h" #include "bitmaps/allBitmaps.h" // Definitions of Main Menu M2_LABEL(el_label_MainMenu,NULL,"Main Menu"); // Construct Main Menu List M2_LIST(list_main_menu) = {&el_label_MainMenu}; M2_VLIST(el_list_main_menu,NULL,list_main_menu); M2_ALIGN(el_main_menu, "W64H64", &el_list_main_menu); M2tk m2(&el_main_menu, m2_es_arduino, m2_eh_4bd, m2_gh_glcd_ffs); void setup() { GLCD.Init(); // initialise the library GLCD.DrawBitmap(ArduinoIcon64x32, 32,0); //draw the bitmap at the given x,y position delay(3000); GLCD.ClearScreen(); } void loop() { m2.checkKey(); m2.draw(); } 

I am trying to create a splash screen for my menu driven program. I have a feeling that it has something to do with the definition of the PROGMEM Icon Arduino image. They are defined as part of the standard GLCD library. I'm not quite sure what is wrong, or how to fix it.

The exact error message is:

C: \ Users \ Dirk \ Documents \ Arduino \ libraries \ glcd / bitmaps / ArduinoIcon64x32.h: 25: error: ArduinoIcon64x32 causes a partition type conflict

This is not like ArduinoIcon64x32 defined. Here's how the image file is defined:

 #ifndef _ArduinoIcon64x32_H #define _ArduinoIcon64x32_H #include <inttypes.h> #include <avr/pgmspace.h> static unsigned char ArduinoIcon64x32[] PROGMEM ={ 64, // bitmap width (arduino glcdlib format) 32, // bitmap height (arduino glcdlib format) 0x00, 0x00, 0xc0, 0x20, 0x10, 0x08, 0xc8, 0x88, 0x08, 0x08, 0x10, 0x20, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xf0, 0xf8, 0xf8, 0xf8, 0xf0, 0xc0, 0x00, 0x00, 0x00, 0x40, 0x70, 0x0c, 0x30, 0xc0, 0x00, 0xc0, 0x30, 0x0c, 0x30, 0xc0, 0x00, 0xc0, 0x30, 0x08, 0x88, 0x48, 0x28, 0x28, 0xf8, 0x20, 0x20, 0x40, 0x80, 0x40, 0x20, 0x10, 0x20, 0x98, 0x18, 0xc0, 0xc0, 0x00, 0x00, 0x07, 0x18, 0x20, 0x40, 0x80, 0x9f, 0x8f, 0x87, 0x82, 0x40, 0x20, 0x18, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xf0, 0xfe, 0xff, 0xff, 0x1f, 0x03, 0x1f, 0xff, 0xff, 0xfc, 0xf0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1c, 0x63, 0x80, 0x46, 0x4a, 0x52, 0xe3, 0x52, 0x4a, 0x46, 0x80, 0x63, 0x1c, 0x02, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x30, 0x08, 0x04, 0xe2, 0x22, 0x22, 0x22, 0xe2, 0x04, 0x08, 0x30, 0xc0, 0x00, 0x00, 0xe0, 0xfc, 0xff, 0xff, 0x7f, 0x7f, 0x78, 0x78, 0x78, 0x78, 0x78, 0x7f, 0x7f, 0xff, 0xff, 0xfc, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x02, 0xff, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x08, 0x10, 0x23, 0x22, 0x22, 0x22, 0x23, 0x10, 0x08, 0x06, 0x01, 0x18, 0x3f, 0x3f, 0x3f, 0x0f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0f, 0x3f, 0x3f, 0x3f, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x0a, 0x0a, 0x2b, 0x0a, 0x0a, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; #endif //define _ArduinoIcon64x32_H 

Any pointers and help you could offer, or an alternative method for generating a splash screen would be appreciated.

+1
conflict arduino lcd
source share

No one has answered this question yet.

See similar questions:

7
GCC error "<variable> causes partition type conflict"

or similar:

262
Android: View.setID (int id) programmatically - how to avoid identifier conflicts?
69
How do I manage conflicts with git submodules?
64
Git resolve conflict using --ours / - them for all files
43
TortoiseSVN reports a conflict but no conflict was found
3
Conflicting types
2
Error: conflicting types for 'pow' in C
2
"Partition Type Conflict" Due to Macro Definition in GCC 4.8.2
0
Incorrect display using concatenation
-one
Incompatible type for arguments and conflicting types

All Articles