Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Apr 13, 2015 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant