NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Support Forum » Temp Sensor not working
February 27, 2010 by Ralphxyz |
This same code worked when compiled on my PC but fails when compiled on OSX. Well actually it seems to compile fine it is just a incomplete display on the LCD. I get:
That's it no temperature is displayed. Thanks for the help, Ralph |
---|---|
February 27, 2010 by mrobbins (NerdKits Staff) |
Hi Ralph, Did you remember to run "avr-gcc-select 4" from the Terminal? If you run this, then remove all of the .o and .hex files from your tempsensor and libnerdkits directories. Then, run "make" again, so it will compile it with the right compiler version. Post back after you give this a try. Mike |
February 27, 2010 by Ralphxyz |
What is avr-gcc-select 4? Where do i get it? How would I "run" it? Yes I know next to nothing :-) Thanks, Ralph |
February 27, 2010 by Ralphxyz |
Ok I ran "avr-gcc-select 4" from Terminal (where was it ever said to do this?). miniMac:tempsensor Me$ avr-gcc-select 4 Current default compiler: gcc 4 I still get the same results. Thanks for the help, Ralph |
February 27, 2010 by mrobbins (NerdKits Staff) |
Hi Ralph, After running that command, you now have to delete any files ending in .o or .hex in your tempsensor and libnerdkits directories. Otherwise, it won't bother trying to recompile it, and will just re-upload the old version. Mike |
February 27, 2010 by Ralphxyz |
All right, thank you Mike, I got it to run (doing exactly as you said). Thanks again, Ralph |
Please log in to post a reply.
Did you know that you can connect a computer keyboard to your microcontroller? Learn more...
|