ROM Bootloader LPUART clock gate disabled on MKL17

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

ROM Bootloader LPUART clock gate disabled on MKL17

762 Views
frederikvezina
Contributor I

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

Tags (1)
0 Kudos
2 Replies

487 Views
frederikvezina
Contributor I

Turns out we are not using the right pins (PTA1 &2) for the lpuart0 to use the ROM Boot.

Case closed!

0 Kudos

487 Views
robertpoor
Senior Contributor I

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

0 Kudos