Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
dcmi_mcu_upgrade_transfile Prototype
Syntax
int dcmi_mcu_upgrade_transfile(int card_id, char *file)
Function
Uploads the MCU upgrade package to the MCU.
Parameter Description
Parameter |
Input/Output |
Type |
Description |
---|---|---|---|
card_id |
Input |
int |
ID of the Atlas 300T training card (model 9000). Query the supported IDs by referring to dcmi_get_card_num_list Prototype. |
file |
Input |
char * |
MCU upgrade package. |
Return Value
Type |
Description |
---|---|
int |
Results:
|
Exception Handling
N/A
Constraints
- Asynchronous calling.
- The program that invokes this interface must be run by the root user of the physical machine. If the program is run by a non-root user of the physical machine, container, or VM, a permission error is returned.
Calling Example
int ret = 0;
int card_id = 0x56;
ret = dcmi_mcu_upgrade_transfile(card_id,"./mcu.bin");
if(ret != 0) {
//todo: records logs
return ret;
}
...