So, when I try to upload my code to arduino mega, it doesn;t upload. Also, the TX/X leds don't flash during uploading. And then error message pops up. It's like this:
avrdude: stk500v2_setparm(): failed to set parameter 0x9e
avrdude: stk500v2_command(): unknown status 0xc8
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500v2_command(): unknown status 0x01
avrdude: stk500v2_disable(): failed to leave programming mode
Oh, forgot to say. Arduino gets power.