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.

Microcontroller Programming » Initialload -upload error 258

November 09, 2011
by BNS
BNS's Avatar

Hi, This is my first time programming and using command prompts, I opened my code file in cmd,worked my way to initialload,then type in make- It seems to list everything in make file and at the end is says initialload -upload error 258- I changed my port to (com1) and changed make file to (com1)Any help would be appreciated

November 09, 2011
by hevans
(NerdKits Staff)

hevans's Avatar

Hi BNS,

It would be helpful if you pasted the entire error message you are getting so we can take a look.

Try not changing the COM port manually and using the assigned port number and see if that gives you any different results.

Humberto

November 09, 2011
by BNS
BNS's Avatar

HI HUMBERTO I CHANGED PORT BACK TO COM6. SAME THING. HERES A COPY OF THE ERROR C:UsersBarry & ShawnDesktopCodeCode>cd initialload

C:UsersBarry & ShawnDesktopCodeCodeinitialload>dir Volume in drive C is HP Volume Serial Number is 5AB9-7B12

Directory of C:UsersBarry & ShawnDesktopCodeCodeinitialload

11/09/2011 07:31 PM <DIR> . 11/09/2011 07:31 PM <DIR> .. 05/01/2010 04:31 PM 969 initialload.c 11/09/2011 05:08 PM 21,973 initialload.hex 11/09/2011 06:59 PM 637 Makefile 3 File(s) 23,579 bytes 2 Dir(s) 322,319,978,496 bytes free

C:UsersBarry & ShawnDesktopCodeCodeinitialload>make avrdude -c avr109 -p m168 -b 115200 -P (COM6) -U flash:w:initialload.hex:a /usr/bin/sh: -c: line 1: syntax error near unexpected token (C' /usr/bin/sh: -c: line 1:avrdude -c avr109 -p m168 -b 115200 -P (COM6) -U flash :w:initialload.hex:a' make: *** [initialload-upload] Error 258

November 09, 2011
by hevans
(NerdKits Staff)

hevans's Avatar

Hi BNS,

It looks like you have parenthesis around your port number. Remove the parenthesis so it just says COM6. I believe that is the error the shell seems to be complaining about.

Humberto

November 11, 2011
by BNS
BNS's Avatar

Thanks for the help, you were correct the parenthesis were causing the problem.

Post a Reply

Please log in to post a reply.

Did you know that signed numbers need to be sign-extended when chaging variable sizes? Learn more...