Change processor in project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change processor in project

Jump to solution
4,882 Views
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 Kudos
Reply
1 Solution
4,325 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
5 Replies
4,325 Views
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 Kudos
Reply
4,325 Views
deniscollis
Contributor V

Hi Marek,

Thanks, this works too.

Denis 

0 Kudos
Reply
4,326 Views
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 Kudos
Reply
4,325 Views
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 Kudos
Reply
4,325 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Denis,

Thanks for your sharing :smileyhappy:.

Have a nice day!

BR

Alice

0 Kudos
Reply