NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Support Forum » LCD Display only shows first line
December 26, 2010 by sthrs |
Hi, I'm running my NerdKit toolchain on Gentoo with:
built using crossdev -t avr. Upon turning on my NerdKit for the first time, the original program in flash displayed correctly, but subsequent attempts using homebrew compiled on my computer only show the last line of text that was entered on the first line. For the initialload program, for example, it only says "is alive!" on the first line. I tried the -O0 trick, but it had no effect. Please help, and feel free to ask me for more information. Thanks! |
---|---|
December 26, 2010 by mrobbins (NerdKits Staff) |
Hi sthrs, Welcome to the forums! This issue has to do with a compiler "optimization" that other Gentoo and Fedora-using customers have discovered before (see 1, 2). Another customer helped figure out the root cause today. In the past, such as in the two forum discussions I just linked to, we had recommended switching to optimization level "-O0" for the libnerdkits code. However, we've got a possibly better way to go about it now. In your project Makefile, replace:
with:
That is, just remove the "-j .text" part. Then, touch the code file so it's forced to recompile, and make and upload. This way it includes all compiled sections, including part of the LCD code that apparently gets optimized into a data table. Please give that a try and let me know if it works! Mike |
December 26, 2010 by sthrs |
I will try that tomorrow as I have to go now. I will reply with the results. Thank you! |
December 27, 2010 by sthrs |
That worked! Thank you! |
Please log in to post a reply.
Did you know that you can make a capacitive proximity sensor with some aluminum foil and paperclips? Learn more...
|