Code settings in the mtk usb cable burning Project

Source: Internet
Author: User

Some time ago, I asked the sim engineer to find out how to set the USB host:

First, you need to check the corresponding project. does the USB downloade be enabled in the Mak? (09a: USB _download = none, 10a: USB _download_in_bl = none. Other variables can be viewed by yourself. anyone familiar with the code knows this)

This is very important, because I have never known how to change it. I only changed the subsequent steps, but I did not verify it. Then I searched for the reason why the macro was not opened.

The second step is to modify the file. Study the startup code and find the place to change the key. Bl_main.c (10a is here, 09a is another one, but the principle is similar) There is the usbdl_ready_to_enter_dlmode, usbdlkey_position variable, the variable is to configure the default USB Download button!

There are two points to define it:

1. custom_blconfig.c (generated by sysgen2.pl)
2. sysgen2.pl

Modify the key value.

Const kal_uint8 usbdlkey_position = device_key_vol_up; // device_key_star

There is also a variable under 10a

Kar_uint16 usbdlauto_timeout = 5000;

Change to a delayed value, such as 5000, and it will be automatically downloaded ..

Very convenient !!

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.