Dear team,
My customer is thinking about changing Boot-Mode by detection of USB OTG port.
The customer intends to make their proto-board with i.MX6Dual Lite and they intend to use i.MX6U with ‘internal boot-mode’. When they want to update their firmware, they want to USB OTG port into PC Host and firmware update can be done via USB OTG port using serial downloader-mode.
BTW, the USB port is used only for firmware update.
I think that changing boot-mode setting is needed (Internal boot-mode to serial-downloader-mode) by USB OTG attach detection. And some modification to hardware design and SW design will be needed.
Do you have any information on this?
Expertise or any experiences?
Best Regards,
Miyamoto
Hi Miyamoto,
we have a board usually booting from NAND and when USB-OTG is plugged in it starts serial downloader.
BOOT_MODE0 has a pull-down and BOOT_MODE1 has a pull-up to VDDSNVS. On USB connection, BOOT_MODE0 is set high using a small PNP transistor and BOOT_MODE1 shorted to GND using a small FET.
Really simple and works just fine.
Best regards
Martin
Hi Miyamoto
you are right, it is necessary to set boot mode as described in Table 8-1. Boot MODE pin settings
i.MX6SDL Reference Manual or alternatively use option described in sect.8.2.5 Internal Boot mode:
"If an error occurs during the internal boot, the boot code jumps to the Serial Downloader".
That is for example if configured for sd boot, remove sd card, then processor will enter Serial Downloader mode.
http://www.nxp.com/assets/documents/data/en/reference-manuals/IMX6SDLRM.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Miyamoto
one can look at i.MX6 Sabre SD schematic
https://www.nxp.com/webapp/Download?colCode=i.MX6_SABRE_SDP_DESIGNFILES&appType=license
Best regards
igor
Hi Miyamoto
>The customer wants to change the BOOT_MODEx pins setting automatically by detection
>of attaching USB for firmware update.
I am afraid this is not possible.
>Do you have any examples?
not, sorry.
Best regards
igor