Jump to USB HID bootloader from application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Jump to USB HID bootloader from application

491 Views
buckfobb
Contributor II

We're using a 1061 with qspi flash. It normally boots with boot mode "internal boot". We can successfully update the qspi flash with the NXP usb hid flashloader tools by forcing it into "serial downloader" boot mode using the proper gpio pin combination at power-on. This is good.

The "serial downloader" boot mode requires physical user interaction (holding buttons) on our product. We'd like to also add the ability to make it hands-free, via a usb command, so that the user can also update the firmware without physically interacting with the product. We have verified that erasing part of the qspi flash (i.e. invalidating it) and then power-cycling will cause the "internal boot" boot mode to execute the usb hid serial downloader. However, this is a fairly drastic method of causing it to update. Is it possible to vector/jump to the internal rom usb hid serial downloader from the application, similar to how this is possible on the LPC43xx (https://community.nxp.com/thread/419584 )?

Thanks for your help.

0 Kudos
1 Reply

450 Views
jeremyzhou
NXP Employee
NXP Employee

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
1)  Is it possible to vector/jump to the internal ROM USB hid serial downloader from the application, similar to how this is possible on the LPC43xx ?
-- I'd like to suggest you implement it by following the below steps.
1) Integrate the flashloader firmware into the application image, then program to the QSPI flash.
2) After application runs, copy the flashloader firmware to internal RAM prior to jumping to.
3) After jumping, the flashloader will run, it seems like the MCU enter into the "Serail downloader"  mode.
BTW: There's a flashloader demo in the SDK library.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos