mega 2560 upload issue

i was running this sketch on my uno without a issue, i upgraded to a mega and now it wont upload only that sketch. i can upload all the ones that it comes with as well as a dump test which works fine. i get a timeout error back. ive tried pushing the reset button when uploading with no change. i even tried uploading the sketches the have worked in the past and they still upload so its gotta be something with this one. any ideas?

post the code and i'll try on my 2560 8)

https://github.com/omersiar/RFID522-Door-Unlock/blob/master/RFIDDoorUnlock205.ino

I've never dealt with the MFC522 but maybe you need to download and install a library? I'm getting this:

Arduino: 1.0.6 (Windows XP), Board: "Arduino Mega 2560 or Mega ADK"
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\variants\mega -IC:\Program Files\Arduino\libraries\EEPROM -IC:\Program Files\Arduino\libraries\SPI C:\DOCUME~1\Szon\LOCALS~1\Temp\build8458020409780826891.tmp\sketch_oct19a.cpp -o C:\DOCUME~1\Szon\LOCALS~1\Temp\build8458020409780826891.tmp\sketch_oct19a.cpp.o

sketch_oct19a.ino:66:59: warning: MFRC522.h: No such file or directory
sketch_oct19a:122: error: 'MFRC522' does not name a type
sketch_oct19a.ino: In function 'void setup()':
sketch_oct19a:139: error: 'mfrc522' was not declared in this scope
sketch_oct19a.ino: In function 'int getID()':
sketch_oct19a:265: error: 'mfrc522' was not declared in this scope
sketch_oct19a:268: error: 'mfrc522' was not declared in this scope
sketch_oct19a:273: error: 'mfrc522' was not declared in this scope
sketch_oct19a:278: error: 'mfrc522' was not declared in this scope
sketch_oct19a.ino: In function 'void deleteID(byte*)':
sketch_oct19a.ino:342: warning: unused variable 'count'
sketch_oct19a.ino: In function 'boolean checkTwo(byte*, byte*)':
sketch_oct19a.ino:360: warning: NULL used in arithmetic

A quick google search brought me here: GitHub - miguelbalboa/rfid: Arduino RFID Library for MFRC522

from what I read briefly it seems that this code is not perfect and also differs between UNO and the MEGA2560 on pinouts for the chip itself... sorry I realize this isn't really an answer but more of an addition to your question.. luckily there be smarter people than us that frequent these forums!

i only get the timeout error. im unsure how you got more issues then i did.

Hint:

 Serial.println("!!! Wipe Button Pressed !!!");

ok i edited everywhere it said !!! Wipe Button Pressed !!!
i changed it to Wipe Button Pressed!

now it uploads but the rfid code reader wont read a card, switched back to dump test and it still reads, reloaded the sketch ive been working with and still no read. i even tried rebooting the board and no change. i can post the current code if wanted. it comes up with the present card but wont read the info.

OK, so this is now a programming problem. I'll move the thread. Please post your code, in code tags, or if it is too big, as an attachment.

how do i put it in code tags?

How to use this forum

Select the code, and put it between [code] ... [/code] tags.

You can do that by hitting the # button above the posting area.