How to initialize MCG and USB without a crystal?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to initialize MCG and USB without a crystal?

ソリューションへジャンプ
720件の閲覧回数
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 解決策
592件の閲覧回数
laszlomonda
Contributor V

In the meantime, the issue has been solved.

元の投稿で解決策を見る

2 返答(返信)
593件の閲覧回数
laszlomonda
Contributor V

In the meantime, the issue has been solved.

592件の閲覧回数
ivadorazinova
NXP Employee
NXP Employee

Hi,

thank you for informing us.

Have a nice day.

Iva

0 件の賞賛
返信