APM2 2560 SPI/ISP can not Flash

 While  updating to AC2.7  the 2560  Bootloader  got corrupted and would not work.

 I have tried to flash  the Arduino Bootloader  over the ICSP  but have too many errors.

 Alot of fustrating time later I have to give up.  I tried  different Programers , usbasp, usptiny, arduino as Isp.  Writing  bootloader gets verification error.

I can change fuse to  No Bootrst and load a blink the Led program over ICSP and it runs ok  but can not load the whole Arducopter Hex  over the ISP without error.

I have come to the conclusion that the SPI connections to the sensors is interfering with the ICSP function  and that  the 2560 can not be  recovered .

 

 

 

 

 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Update :

     My Avr Dragon  programer   arrived from Mlaysia and I have a bootloader programed  and the arducopter  FW loaded now.

     The APM  spi bus translator is not an issue  because the reset line  disables it when the ISP programer is active.

     Usbasp, tiny etc  will not work with Mega2560,  In hundreds of google pages this is not mentioned anywhere  except for one reference to the usbtiny.   The  Amel Dragon or AVRispII   is required  to flash the bootloader on the 2560.

    I also found that  programs in Application  memory can not write to Bootloader  memory  so my attempts to program the bootloader with an application program did not work. 

    I could not get the   mega_2560  bootloader  code in the Arduplane Tools repository to work  and I had problems with the stk500v2  bootloaders in the Arduino  distributions  and eventually found a working bootloader from another site .

    It does not  flash the APM2  Leds  but works 100% using avrdude  to upload  an works with Arduino upload but have to enable verbose to make it work .

     

     

     

This reply was deleted.

Activity

Gremsy liked Gremsy's profile
Mar 12
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
More…