NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Everything Else » Step 10c – Compile and Install your first program

February 10, 2011
by nelly
nelly's Avatar

Help! After I type "make", on the command line, it gave me this: makefile:4: *** empty variable name. Stop

Thx,

Nelly

February 10, 2011
by hevans
(NerdKits Staff)

hevans's Avatar

Hi Nelly,

This is a pretty strange error you are getting. If you put up a full screenshot of your command line it might help us figure out a little bit better what is going on.

Humberto

February 11, 2011
by nelly
nelly's Avatar

Hi Humberto,

I was able to fix that problem. My next problem is the tempsensor. Here's the command line

C:UsersntukayDocumentsNelsonNerdkit>cd code

C:UsersntukayDocumentsNelsonNerdkitCode>dir Volume in drive C has no label. Volume Serial Number is 94CA-5668

Directory of C:UsersntukayDocumentsNelsonNerdkitCode

05/01/2010 04:32 PM <DIR> . 05/01/2010 04:32 PM <DIR> .. 05/01/2010 04:31 PM <DIR> bootloader168 09/18/2009 04:49 PM <DIR> bootloader328P 05/01/2010 04:31 PM <DIR> dip_arithmetic 05/01/2010 04:31 PM <DIR> dip_arithmetic_edu 02/11/2011 11:39 AM <DIR> initialload 05/01/2010 04:31 PM <DIR> led_blink 02/11/2011 11:39 AM <DIR> libnerdkits 02/11/2011 11:49 AM <DIR> tempsensor 05/01/2010 04:31 PM <DIR> tempsensor_edu 05/01/2010 04:31 PM <DIR> trafficlight 0 File(s) 0 bytes 12 Dir(s) 214,267,498,496 bytes free

C:UsersntukayDocumentsNelsonNerdkitCode>cd tempsensor

C:UsersntukayDocumentsNelsonNerdkitCodetempsensor>dir Volume in drive C has no label. Volume Serial Number is 94CA-5668

Directory of C:UsersntukayDocumentsNelsonNerdkitCodetempsensor

02/11/2011 11:49 AM <DIR> . 02/11/2011 11:49 AM <DIR> .. 02/11/2011 01:25 PM 623 Makefile 05/01/2010 04:31 PM 2,820 tempsensor.c 02/11/2011 11:49 AM 28,875 tempsensor.hex 02/11/2011 11:49 AM 29,436 tempsensor.o 4 File(s) 61,754 bytes 2 Dir(s) 214,267,498,496 bytes free

C:UsersntukayDocumentsNelsonNerdkitCodetempsensor>make avrdude -c avr109 -p m168 -b 115200 -P COM 8 -U flash:w:tempsensor.hex:a avrdude: ser_open(): can't open device "COM": The system cannot find the file sp ecified.

make: *** [tempsensor-upload] Error 1

C:UsersntukayDocumentsNelsonNerdkitCodetempsensor>make avrdude -c avr109 -p m168 -b 115200 -P COM 8 -U flash:w:tempsensor.hex:a avrdude: ser_open(): can't open device "COM": The system cannot find the file sp ecified.

make: *** [tempsensor-upload] Error 1

C:UsersntukayDocumentsNelsonNerdkitCodetempsensor>make avrdude -c avr109 -p m168 -b 115200 -P COM 8 -U flash:w:tempsensor.hex:a avrdude: ser_open(): can't open device "COM": The system cannot find the file sp ecified.

make: *** [tempsensor-upload] Error 1

C:UsersntukayDocumentsNelsonNerdkitCodetempsensor>

February 11, 2011
by hevans
(NerdKits Staff)

hevans's Avatar

Hi Nelly,

You do not want to put a space between COM and the number. It should just be COM8.

Humberto

February 11, 2011
by Ralphxyz
Ralphxyz's Avatar

"can't open device "COM", well let's start there. What com port is your OS seeing? Oh and what OS are you using on your pc? I assume Windows 7, if so Open Device Manager (just enter Device Manager in the Start Search box) to see what is your com port.

Then, when you are trying to copy and paste the text from the screen paste the text and then highlight it and click the Indent Selection as Code Block button, this makes it easier to read.

 C:UsersntukayDocumentsNelsonNerdkitCodetempsensor>make avrdude -c avr109 -p m168 -b 115200 -P COM 8 -U flash:w:tempsensor.hex:a
avrdude: ser_open(): can't open device "COM": 
The system cannot find the file sp ecified.
make: *** [tempsensor-upload] Error 1
C\:Users\ntukay\Documents\Nelson\Nerdkit\Code\tempsensor>

Now for regular text you get the back slash by escaping one backslash with another \\ (that took four).

So if you did want to enter: C\:Users\ntukay\Documents\Nelson\Nerdkit\Code\tempsensor> as text you would escape each backslash with two.

Ralph

May 21, 2011
by Rachid
Rachid's Avatar

I have a dell running windows 7 and I dont see the COM ports in device managerwhat gives? the laptop is brand new. Any ideas?

May 22, 2011
by missle3944
missle3944's Avatar

Hi Rachid,

If you have the Prolific serial driver installed correctly all you have to do is just plug in your nerdkit and go to device manager and under the Prolific serial icon it will display what com port is running. I had a similar problem when I first got my nerdkit because I recieved the xp distribution instead of the Win 7. Can you post a pic of your problem? I had a similar issue if you want the other driver it is in my old question and mrobbins answered it. He provided a link to the other win 7 driver and it worked perfectly. Just scroll down on the page to were it says mrobbins and click "here" he posted and it should start downloading. hope this helps the link is http://www.nerdkits.com/forum/thread/1160/

-missle3944

May 25, 2011
by Rachid
Rachid's Avatar

Thanks you missle3944. I installed the new driver per your procedure and all is good. My dell dell sees the prolific serial driver

May 26, 2011
by missle3944
missle3944's Avatar

Always Glad to help and welcome to the forums.

-missle3944

Post a Reply

Please log in to post a reply.

Did you know that SPDT stands for "Single Pole, Double Throw"? Learn more...