ROM Bootloader LPUART clock gate disabled on MKL17

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ROM Bootloader LPUART clock gate disabled on MKL17

837 次查看
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

标记 (1)
0 项奖励
回复
2 回复数

562 次查看
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 项奖励
回复

562 次查看
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 项奖励
回复