About APM Flight Control burn bootloader

Source: Internet
Author: User
Tags apm

Recently has been due to the four-axis school application, has been doing this thing, hey, helpless this goods is not as simple as imagined, their own write n long flight control, also did not fly up the plane, can only use open source APM fly control Practice practiced hand Bai, backup APM burning Bootloader method, for future use!


Original address: http://bbs.diywrj.com/thread-21628-1-1.html


Required tool Material:

      

1, a avrusbasp programmer and the corresponding write software, recommended progisp1.72

2, AVR USB self-programming software FLIP, download link http://www.atmel.com/tools/FLIP.aspx, if the computer has been installed in Java, choose the small one, if not, choose the big one with Jave to download

3, prepare three hex files, respectively Atmega2560 bootloader file, 32u2 bootloader file and 32u2 ppm program file

Burning writing Process Basic Overview: first to Atmega2560 Burn write bootloader, and then to Atmega32u2 Burn write bootloader, finally to 32U2 write PPM decoding communication program

First, burning write Atmega2560 of bootloader:

1, Atmega2560 SPI interface in the APM board near the location of the USB interface, double row 6PIN row pin, if your usbasp is a 10PIN interface, you also need a 10PIN to 6PIN of the transfer cable. After connecting the download line, open Progisp,select chip select Atmega2560, and then Rd to see if the ID word corresponds, without error, continue to the next step

            

2. Click on the pre-write fuse or the digital box on the right of the programming fuse to Atmega2560 the fuse bit configuration

         

3, Atmega2560 the fuse bit is configured as follows: Low FF, high D8, extended FD, configured after click write execution fuse bit write, after the completion of the write can be clicked to read the fuse bit to verify whether the fuse bit has been written, the successful write can close the fuse bit configuration interface

         

4, the configuration of the fuse bit after clicking on the "Flash" loaded Atmega2560 bootloader hex file, in the main interface check chip erase, programming flash, check Flash, and then click Automatically start to write Bootloader program, 2560 write time longer, waiting patiently

         

5, Burn write success will appear check error, this is because Progisp for 2560 bootloader check function is not very perfect, check not, so it will appear such a checksum error. In fact, Bootloader has been downloaded. You can see that the B and C LEDs are flashing.

      

Ii. burning and writing Atmega32u2 's bootloader

ATMEGA32U2 's SPI interface is located near the APM board's GPS socket location, and many APM boards are shipped out of the factory, 32U2

The SPI interface pins are not welded, and if not, you need to weld the pins first. ATMEGA32U2 bootloader Burn Write steps refer to the above Atmega2560 burning steps, first select the chip 32U2, then configure the fuse bit, atmega32u2 the fuse bit for low FF, high D9, expansion F4, Finally, transfer the Arduino-usbdfu.hex file to perform the burn write.

      

Third, the PPM decoding communication program written to ATMEGA32U2

1, mega2560 and mega32u2 bootloader all burned after the completion of the connection APM Flight Control Board USB port to the computer, the computer prompts to find new hardware

         

This driver is in the Ardupilot\tools\arduppm\atmega32u2\drivers directory of APM firmware, if not, please go to APM's Wike website and download a firmware on your own. After the driver is installed, an Atmel DFU device appears in the Device Manager (note: This part may appear the prompt that cannot find the file, on the XP will prompt Libusb0_x86.dll, may the next Libusb0_x86.dll puts in System32, in the XP test passes! )

      

2, after the drive to open the Flip software, click the red arrow refers to the icon or to the main menu select "device->select", you can also use the shortcut key "ctrl+s", select Atmega32u2, and then click OK.

         

3. Click the red arrow point or select "settings->communications->usb" from the main menu, or use the shortcut key "ctrl+u", then click "open" to open the USB.

         

4, if the above steps are correct, you will see signature bytes information, as shown in:

         

5, now we click the red arrow refers to the icon to load HEX or select "file->load hex" to the main menu, you can also use the shortcut key "ctrl+l" Select the pre-prepared PPM decoding HEX file. It should be noted that the hex file loaded by the flip cannot be placed in the Chinese directory, otherwise it will prompt to load the unsuccessful

         

6. Now confirm whether all the "operations flow" options have been checked, as shown in the Red Arrows, and click Run in the lower left corner to perform the write. The software will pop up a write progress bar hint, normal words quickly, a few seconds can be completed, the final left corner of the tip veripass check through, the whole board of basic bootloader namely brush write complete, Plug and unplug a USB, computer discovered new equipment, After you install the APM USB drive, you can open the Mission planner to update the APM firmware.


This article is from the "Essays in the Literary Sword Minor" blog, please make sure to keep this source http://wenjianboy.blog.51cto.com/7389753/1626529

About APM Flight Control burn bootloader

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.