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 !!