MateiVidican / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

Compiling-linking errors on ChipKit Uno32 with MPIDE 0023 #318

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Start MPIDE and open "GraphicsTest" (or any other example)from the example 
folder for u8glib and check Board = chipKIT UNO32 under the 
Tools->Board->chipKIT menu.

2. Uncomment constructor call "U8GLIB_SSD1306_128X64 u8g(4, 5, 6, 7);   // SW SPI 
Com: SCK = 4, MOSI = 5, CS = 6, A0 = 7 (new white HalTec OLED)" in the 
GraphicsTest.ino sourcefile.

3. Compile/verify the code and you get lots of linker errors like: 
"GraphicsTest.cpp.elf section `.sbss' is not within region `kseg1_data_mem'"

What is the expected output?
* A succeful compile and link

What do you see instead?
* Lots of linker errors about .sbss not fitting in region kseg1_data_mem. I've 
attached the compile/link log with error messages as a textfile.

What version of the product are you using? On what operating system?
* MPIDE 0023 and u8glib_arduino_v1.17.

Please provide any additional information below.

* The compiling and linking works perfectly if you choose board = chipKIT MAX32.

* I can compile and link with board= UNO32 if i delete unneeded device files in 
"utility" folder in u8glib.

My conclusion is that the linker for some reason tries to include *all* code in 
the utility section into the RAM bank when you compile as UNO32.

Probably some define or ifdef maybe somewhere that is missing? Unfortunatly I'm 
new to u8glib and how it's working internally so i wonät fix it. But i think 
the problem must be trivial to fix (i hope). :)

Thanks!

Original issue reported on code.google.com by mog.pett...@gmail.com on 5 Feb 2015 at 5:49

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot to write that i'm using Windows 7 Home Premium as OS.

Original comment by mog.pett...@gmail.com on 5 Feb 2015 at 5:56

GoogleCodeExporter commented 9 years ago
I have not used and checked chipkit for a long time.
I try to fix this for the next release, but currently i have not much time to 
deal with this problem

Original comment by olikr...@gmail.com on 5 Feb 2015 at 9:26