hinata46243 / mega-isp

Automatically exported from code.google.com/p/mega-isp
0 stars 0 forks source link

avrisp error when compile #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I appreciate you to make this program 
but I have some problem in compile

When I compile avrisp in Arduino an error occurs like this
  In function 'int avrisp()':
  error: jump to case label

and the curser pointed this line
  case 0x61: //STK_PROG_DATA   

Is there any setting? 

I'm Arduino beginner and I don't know about C or JAVA, assembly

I using arduino on windowsXP and I want to burn arduino bootloader.

Can I burn arduino bootloader with this avrisp?

Original issue reported on code.google.com by mrkis...@gmail.com on 18 Mar 2008 at 6:07

Attachments:

GoogleCodeExporter commented 8 years ago
This is new to me, some problem with the switch statement. Please try the 
attached
file, I moved the initialization of some temporary storage to the front of the
avrisp() function.

You need a working Arduino system to use this firmware. You can use it to burn 
the
bootloader on your second ATMega168 etc. chip. Be sure to use a 19200 baud rate.

Please post your results with this new sketch!

Original comment by rsb...@gmail.com on 20 Mar 2008 at 4:33

Attachments:

GoogleCodeExporter commented 8 years ago
Reference: http://www.gidforums.com/t-5603.html 
Explains the "jump to case label" error message.

Original comment by rsb...@gmail.com on 20 Mar 2008 at 4:38

GoogleCodeExporter commented 8 years ago
I'm sorry to say that it occurs same error in the same place 
Is it possible that there are deferent compile result with same sketch in 
arduino?

I'm using arduino-0010 version in windowsXP. How about yours?

Original comment by mrkis...@gmail.com on 26 Mar 2008 at 5:13

GoogleCodeExporter commented 8 years ago
Try this: Delete the case 0x60 and 0x61 (from case to the line that says break;)

Put in the following:
case 0x60:
 getch();
 getch();
 empty_reply();
 break;
case 0x61:
 getch();
 empty_reply();
 break;

Try a Sketch > Verify/Compile and it should build with no errors.

Original comment by rsb...@gmail.com on 26 Mar 2008 at 7:54

GoogleCodeExporter commented 8 years ago
Yes~ There is no error anymore
Thanks a lot~

Original comment by mrkis...@gmail.com on 6 Apr 2008 at 6:46

GoogleCodeExporter commented 8 years ago
Updated in SVN, new downloadable: avrisp.01.zip contains the updated .pde file.

Original comment by rsb...@gmail.com on 27 May 2008 at 4:35