Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sketches will not upload to Mega #14

Open
Nekraus opened this issue Jun 20, 2016 · 5 comments
Open

Sketches will not upload to Mega #14

Nekraus opened this issue Jun 20, 2016 · 5 comments

Comments

@Nekraus
Copy link

Nekraus commented Jun 20, 2016

Hello!
I have a arduino Mega 2560 ans ITHEAD shield with W5100. I use Nick Gammon's guide to compile
bootloader. I changed the bit lock (0x0F) but the program indicates 0xCF. After the debug version send
Main: Ariadne for Arduino Mega2560, Version 0.5 Net: Built-in settings Net: Address: 0xC0.0xA8.0x01.0x80 Net: Subnet: 0xFF.0xFF.0xFF.0x00 Net: Gateway: 0xC0.0xA8.0x01.0xFE Net: MAC: 0xDE.0xAD.0xBE.0xEF.0xFE.0xED Net: Network init done Tftp: Init socket to port 0x0045
but I can't flash any sketches via serial or tftp :
avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer .
I can't ping the arduino too.

@loathingKernel
Copy link
Owner

LockBit values 0xCF and 0x0F have equal meaning because bits 6 and 7 are not used in atmega2560. Being unable to upload with serial and not being able to ping the shield, probably means that the bootloader didn't initialize the shield properly, thus getting stuck while polling for an incoming connection to the shield.

I assume, since you followed Nick Gammon's guide, that you used an Uno to flash the new bootloader. I remember people having issues with that method, but I have to look through my backlog to see what was the problem and if there was a solution as it has been some time.

@Nekraus
Copy link
Author

Nekraus commented Jun 29, 2016

hello! I used the olimex-mk2 but i have the same problem. No ping, timeout serial. Is it my shield which has a problem ?

@Nekraus
Copy link
Author

Nekraus commented Jun 29, 2016

ok, I solved the problem. The shield should not be plug on the Mega. But now I would use the pin53 as SS, It is possible ?

@loathingKernel
Copy link
Owner

Yes, but you have to modify the code in the spi.h file and compile the booloader from the start.

@titusece
Copy link

Hi Nekraus,
I'm facing similar issue like yours.
#15

I've also tried to flash the bootloader without shield on Mega board.
Any help please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants