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