USB Initialisation Issues from Flash

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

USB Initialisation Issues from Flash

519 Views
nick_j
Contributor III

Hi,

We're having issues when running our program from flash on an imxRT1062 using Micron Serial NOR Flash MT25QL128ABA. We are using generated code to initialise USB Device Class, type CDC. The initialisation works fine when booting the program using JTAG, however, when booting from flash, using FlexSPI NOR Flash, the initialisation fails and the program stops. When the USB initialisation is not included the program runs fine from flash.

The USB fails during the USB Device Class Initialisation when it tries to call a NULL function that is part of the generated USB configuration. When running from JTAG this function is not called however and we can't work out why there would be any difference in the initialisation.

When running from JTAG the linker script settings are that the linker script is managed by MCUXpresso and the application is linked to RAM. To run from flash, the linker script is no longer managed by MCUXpresso, and the addresses that point to BOARD_FLASH are made to point to SRAM_ITC. I will include linker scripts for both boot processes so it's easier to understand.

Is the USB VCOM pre initialised when the program is copied into RAM from Flash and thus the initialisation process is different?

Thanks in advanced for any suggestions,
Nick

Labels (1)
0 Kudos
0 Replies