Hi KBOOT team,
I'm using a MKL17Z256VFT4 processor on our own application board. I enabled booting from the ROM bootloader by setting the FlashConfig in the startup_MKL17Z4.S file. Also added a BCA. Did the fix for this bug as well. (https://community.nxp.com/docs/DOC-332389)
All seems to work fine until I tried to connect with the blhost application using the serial port. There wasn't any PING response from the bootloader.
Looking at the CPU Registers with a debugger, the clock gate for the LPUART0 was not enabled. (See SIM_SCGC5[LPUART0] in SIM_Registers.png attached) When I enabled the other peripherals, their clock gate was enabled.
Could you advise on conditions where the LPUART0 would fail to initialized on the ROM Bootloader?
Thanks,
Frederik
Original Attachment has been moved to: bootloaderEnableAndBCA.txt.zip
Turns out we are not using the right pins (PTA1 &2) for the lpuart0 to use the ROM Boot.
Case closed!
(Just as a note, you may wish to mark your update as the correct solution so it doesn't show up as an open question.)