Change processor in project

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

Change processor in project

ソリューションへジャンプ
5,690件の閲覧回数
deniscollis
Contributor V

I have a project that was erroneously created with the Kinetis K82 as the target processor.  However, the K81 should have been chosen as the target.  How can this be retrospectively fixed?

0 件の賞賛
返信
1 解決策
5,133件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Denis Collis ,

I have a method(there should be not only one ways.) as below steps:

(change K64 to K22 chip as example)

- Change MCU at "MCU setting" :

pastedImage_2.png

- Create a new K22 project as reference.

- Change "Defined symbols" refer to k22 project setting :

pastedImage_3.png

-  Open pins config :

pastedImage_4.png

there will be some error , right click the error message , refer to reminder to do :

pastedImage_5.png

- Delete files related with k64:

pastedImage_6.png

- Build your project , it should still have some error , refer to the Console error message fix them.

Hope it helps,


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
5,133件の閲覧回数
marek-trmac
NXP Employee
NXP Employee

Hi Denis,

I'd recommend to create new project for K81 and copy only source code (or apply changes), you need from your current project.

Regards

Marek

Regards,
Marek


NOTE: If you find the answer useful, kindly click on [ACCEPT AS SOLUTION] button
0 件の賞賛
返信
5,133件の閲覧回数
deniscollis
Contributor V

Hi Marek,

Thanks, this works too.

Denis 

0 件の賞賛
返信
5,134件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Denis Collis ,

I have a method(there should be not only one ways.) as below steps:

(change K64 to K22 chip as example)

- Change MCU at "MCU setting" :

pastedImage_2.png

- Create a new K22 project as reference.

- Change "Defined symbols" refer to k22 project setting :

pastedImage_3.png

-  Open pins config :

pastedImage_4.png

there will be some error , right click the error message , refer to reminder to do :

pastedImage_5.png

- Delete files related with k64:

pastedImage_6.png

- Build your project , it should still have some error , refer to the Console error message fix them.

Hope it helps,


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
5,133件の閲覧回数
deniscollis
Contributor V

Hi Alice,

You also need to replace or edit CMSIS/fsl_device_registers.h as it references the <processor>.h and <processor>_features.h files. Otherwise, everything worked perfectly.

Thanks,

Denis

0 件の賞賛
返信
5,133件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Denis,

Thanks for your sharing :smileyhappy:.

Have a nice day!

BR

Alice

0 件の賞賛
返信