How to initialize MCG and USB without a crystal?

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

How to initialize MCG and USB without a crystal?

跳至解决方案
734 次查看
laszlomonda
Contributor V

Hi guys,

 

I'm the lead developer of the Ultimate Hacking Keyboard which is a split, Open Source keyboard.

 

So far, I successfully ported our firmware from AVRs to FRDM boards, and now I'd like to make it work on our custom PCBs.

 

Given that the IRC48MCLK is on board and capable of driving USB, I'd rather not use a crystal.

 

Apparently, the firmware of the right keyboard half which works on FRDM-K22F board doesn't work on the custom PCB of the right keyboard half, presumably because no crystal is featured on the board.

 

Execution halts when CLOCK_BootToPeeMode() gets called. Please consider the relevant line on GitHub.

 

I started to delve into the MCG and relevant topics, but it's rather overwhelming, and I have limited time to make it work, so I'm reaching out for help.

 

What should I tweak to configure the MCG and USB to work without a crystal in RUN mode and use the IRC48MCLK?

 

Any help is appreciated, and I'd be glad to pay to make this work, especially for a pull request.

 

Cheers!

- Laci

标签 (1)
1 解答
606 次查看
laszlomonda
Contributor V

In the meantime, the issue has been solved.

在原帖中查看解决方案

2 回复数
607 次查看
laszlomonda
Contributor V

In the meantime, the issue has been solved.

606 次查看
ivadorazinova
NXP Employee
NXP Employee

Hi,

thank you for informing us.

Have a nice day.

Iva

0 项奖励
回复