MK22FX512VLH12 fails during clock config

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

MK22FX512VLH12 fails during clock config

ソリューションへジャンプ
1,727件の閲覧回数
olav
Contributor II

Hi

Due to the difficulty getting MCUs, we are considering to use MK22FX512VLH12 instead of MK22FN512VLH12. I have changed to the MK22FX512 MCU on one board and downloaded the unchanged code for MK22FN. It crashes during clock configuration. It therefore seems to be some differences between the two devices regarding clock. I can't find the reference manual for the MK22FX online and is therefore a little stuck.

Any ideas, or does anyone have the reference manual for the MK22FX512 device?

ラベル(1)
0 件の賞賛
返信
1 解決策
1,723件の閲覧回数
ErichStyger
Specialist I

The FX is definitely different from the FN part. I recommend that you use the NXP MCUXpresso Configuration Tools with the NXP MCUXpresso IDE and SDK to get a working setup. The SDK comes with projects you can use as a starter.

I don't know what happened on the NXP web page, but I'm not able to locate the reference manual somehow.

I have shared a projects for the K22FX512 on GitHub (we use it on a robot projects, you can see it here https://mcuoneclipse.com/2019/09/22/eclipse-jtag-debugging-the-esp32-with-a-segger-j-link/

https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/MCUXpresso/K22FX512

I have attached my local copy, I hope this helps.

Erich

元の投稿で解決策を見る

3 返答(返信)
1,721件の閲覧回数
olav
Contributor II

Thank you Erick

From the FX reference manual I see that the FX part does not have IRC48M internal oscillator, and we use this clock. My hope was that the same code image could run on both MCUs, if not we can not use the FX part as a replacement for the FN part. Do you believe that it is possible to make the same code image run on both parts, with modest code changes?

Olav

0 件の賞賛
返信
1,705件の閲覧回数
ErichStyger
Specialist I

No, the same image won't run, at least not for all peripherals. There might be some subtle differences, as the silicon is really different. From the application point of view you should be able to port the application fairly easily, assuming your are using the NXP MCUXpresso SDK.

Just create a new project for the K22FX512 with the SDK for it, then copy over your application files. I did that for several projects and that works fine. But I definitely would not tweak the FN512 project to match the FX one: go with a new project an move your files over.

1,724件の閲覧回数
ErichStyger
Specialist I

The FX is definitely different from the FN part. I recommend that you use the NXP MCUXpresso Configuration Tools with the NXP MCUXpresso IDE and SDK to get a working setup. The SDK comes with projects you can use as a starter.

I don't know what happened on the NXP web page, but I'm not able to locate the reference manual somehow.

I have shared a projects for the K22FX512 on GitHub (we use it on a robot projects, you can see it here https://mcuoneclipse.com/2019/09/22/eclipse-jtag-debugging-the-esp32-with-a-segger-j-link/

https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/MCUXpresso/K22FX512

I have attached my local copy, I hope this helps.

Erich