loathingKernel / ariadne-bootloader

A little less unfinished TFTP bootloader for Arduino Ethernet or Arduino with Ethernet Shield
45 stars 18 forks source link

Sketches will not upload to Mega #14

Open Nekraus opened 8 years ago

Nekraus commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

titusece commented 7 years ago

Hi Nekraus, I'm facing similar issue like yours. https://github.com/LoathingKernel/Ariadne-Bootloader/issues/15

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