KinetisFlash Tool problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KinetisFlash Tool problem

1,460 次查看
hansonhe
NXP Employee
NXP Employee

Dear,

our customer tianyu have below request,

1. They need our KinetisFlashTool could support 32 usb device downloading, they do not use button in GUI, just connect with KL81 board, it download automatically. Could you help provide revise guide? They still have the problem when some device download, it will report re-install driver.

2. They want to download image to MCU by two step, firstly, download from 0x800 to 0x1FFFF, secondly, download from 0x0000 to 0x7FF for first sector, how to change the source code? Thanks.

0 项奖励
回复
1 回复

1,205 次查看
eatonzhang
NXP Employee
NXP Employee

Hi Hansen,

For 1st question, current Kinetis tools and blfwkdll.dll doesn't support to connect multiple USB instances at the same time.

Here is the biref update to support this feature.

1. update peripheral configuration structure.

 Add std::string usbPath to struct PeripheralConfig in apps\common\blfwkdll\blfwkdll.h and struct PeripheralConfigData in src\blfwk\src\Bootloader.cpp.

2. update UsbHidPeripheral

    Add a member variable "char *path" to this class.

    Add an argument "const char *path" in contractor.

    And trans PeripheralConfig::usbPath to it when contracting UsbHidPeripheral object in src/blfwk/src/Bootloader.cpp.

3. update UsbHidPeripheral::init function.

    if ( usbPath is empty)

       m_device = hid_open(.....); // no change

   else

       m_device = hid_open_path( usbPath);

For 2nd question, I suggest to use the sb file which supports Kinetis bootloader/ROM commands. 

HEX/S19 format is also OK. Kinetis Bootloader/ROM tools support multi sessions of HEX/S19.

if you are using bin file, you have to call two times of the API blfwkdll::Updater::flashFirmware()

Best Regards

Yitao Zhang

MCU Software Engineer.

0 项奖励
回复