Change processor in project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Change processor in project

跳至解决方案
5,975 次查看
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,418 次查看
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,418 次查看
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,418 次查看
deniscollis
Contributor V

Hi Marek,

Thanks, this works too.

Denis 

0 项奖励
回复
5,419 次查看
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,418 次查看
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,418 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Denis,

Thanks for your sharing :smileyhappy:.

Have a nice day!

BR

Alice

0 项奖励
回复