BSP clock configuration

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

BSP clock configuration

ソリューションへジャンプ
1,190件の閲覧回数
davidsherman
Senior Contributor I

I have made a new BSP for the K10DN512VLL10 on a custom board.  Although there is an 16 MHz crystal on board, we are only using it for the CAN timing and just want to use the FEI mode at 96 MHz on the clock generator.  I've configured the MCG as such in _bsp_intialize_hardware in bsp_cm.c, however, things go wrong later in _bsp_pre_init().  It seems it's trying to use _bsp_osc_autotrim, which grossly throws off the slow internal clock (about 24kHz instead of 32.768).  So, what is the preferred way of specifying that I want clock configuration 0 to be FEI instead of PEE?  I don't wish to use PEE, since it can only get to 80MHz using the 16MHz crystal.  I could just disable the code, I'm just trying to understand how MQX intended to configure the clock.

0 件の賞賛
返信
1 解決策
1,063件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi David,

I have had other customers just comment out or remove the autotrim code.

Regards,

David

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,064件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi David,

I have had other customers just comment out or remove the autotrim code.

Regards,

David

0 件の賞賛
返信
1,063件の閲覧回数
davidsherman
Senior Contributor I

Thank you David, I commented out the autotrim code.  I have it working now.

0 件の賞賛
返信