NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » Compiling error codes
May 04, 2011 by Cliffxxx |
While trying to compile and dowmnload the new program to the LCD for the first time, I received an error that said "target pattern contains no '%'". Does anyone now where I can find a list of error codes that describes what they meen. Everything else hase worked well up to this point. This is my first atempt at this sort of programming, so any help would be appreciated. |
---|---|
May 05, 2011 by Ralphxyz |
Hi Cliffxxx, post your code or just your output to the LCD. Ralph |
May 05, 2011 by Cliffxxx |
HI Ralph, here is the make file that is supposed to download everything into the MCU according to the instructions in the guide, step 10c.
|
May 05, 2011 by hevans (NerdKits Staff) |
Hi Cliffxxx, I see two issues here. One issue is the com port, you should change the entire "/dev/ttyUSB0" path to just "COM3", you need to remove the /dev/. The second issue, which I believe is the actual one causing the current problem is that lines 17 and 18 seem to have changed a bit. You have an extra line break after line 17, and line 18 is tabbed over one extra tab. You probably accidentally added the line break when you were editing the Makefile. Humberto |
May 05, 2011 by Cliffxxx |
Hi Humberto, The extra line came from me copying it into here, but it did have some extra spaces for some reason. I fixed the problems, but it didn't change anything. I am still getting the same result. I did have a thought though. Are these drive and directory specific? I downloaded everything to my E: drive and made specific directories to place them in. Sometimes I have had problems in the past doing this. Cliff |
May 06, 2011 by Ralphxyz |
Cliffxxx, all of yur project foders have tobe directly under the Nerdkits/Code folder. The Code folder has a libnerdkits folder that holds libraries that are included in the Nerdkit folders:
So as long as you have:
You would do a cd e:\code\initialload and from there do make Ralph |
May 06, 2011 by Hexorg |
Target pattern contains no '%'. Sounds like you are calling printf_P() to output data to USART, but you are not providing a pattern, while providing variables. For example, if your code has
change it to
|
May 06, 2011 by Cliffxxx |
Thanks guys for your time. I have tried both those fixes and get the same results. I did do some looking around and discovered some of the .h files are missing. I couldn't even find them on the original download location. I'll do some playing around and see if I can get it to do something else by removing one line at a time. Cliff |
May 06, 2011 by hevans (NerdKits Staff) |
Hi Cliffxxx, One option is to download the Code folder again, This will eliminate any remaining inconsistencies in the Makefile, and any mysteriously missing files. If you can provide a screenshot of the error you are getting, it would be great. I'm curious about this one. Humberto |
May 06, 2011 by Cliffxxx |
Hey Humberto, You get the gold star on this one. My display now says I am alive. Thanks to everyone for chipping in to help. I must have trashed it somehow when I changed it to COM3 the first time. All I did was copy over the two files, change to COM3, and it worked fine. Thanks again. Cliff |
Please log in to post a reply.
Did you know that SPDT stands for "Single Pole, Double Throw"? Learn more...
|