MQX Lite systick

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,158件の閲覧回数
davidsherman
Senior Contributor I

I am using a KE06 with an external 48 MHz oscillator.  There is presently a bug in Processor Expert that makes it non-functional when configuring for the FBELP oscillator mode, so I have disabled the code it generates and wrote my own.  I know the core clock is running at 48 MHz because the CAN and other modules are running at the correct frequency.  However, I have discovered that although MQX Lite is configured for a 5 millisecond systick, it is actually running at 10 milliseconds.  I looked at where it initializes the systick clock, and the counter value does correspond to a 48 MHz clock, but is it possible it's physically connected to the 24 MHz bus clock?

ラベル(1)
0 件の賞賛
返信
1 解決策
948件の閲覧回数
davidsherman
Senior Contributor I

Never mind, I found it.  The ICS_C2 defaulted to divide by 2, so the core clock was actually 24 MHz.  The CAN worked because it was using the external clock, not the ICS output.  I found that the Systick is using the core clock, not the bus clock.

元の投稿で解決策を見る

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

Never mind, I found it.  The ICS_C2 defaulted to divide by 2, so the core clock was actually 24 MHz.  The CAN worked because it was using the external clock, not the ICS output.  I found that the Systick is using the core clock, not the bus clock.

0 件の賞賛
返信