K22F Question

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

K22F Question

Jump to solution
1,224 Views
sudhanshumehta
Contributor IV

Hi Team,

I have purchased FRDM-K22 Board having MK22FN512VLH12  controller on it.

I am developing some demo application for my project on this controller.

Now our team has decided to change microcontroller  MK22FN1MVLH12.

My question is, can I program MK22FN1MVLH12 using the application I am developing for MK22FN512VLH12.

Of course I will change the microcontroller number in debug configuration.

In-case I will not be able to do so, Please suggest some way and provide some documentation.

In some different link I got basic answer to replace linker file (.lcf file).

Can you please help me where this file is and where to change. 

Hoping to get answer as this is very critical in the project.

Thanks

Sudhanshu.

1 Solution
786 Views
santiago_gonzal
NXP Employee
NXP Employee

Hello Sudhanshu,

Trust me, TWR-K21F120MA and your MCU are using almost the same MCU.

TWR-K22F and FRDM-K22F are using the "smaller" K22.

To summarize:

- K22FN256 and K22FN512 can be evaluated using FRDM-K22 and TWR-K22

- K22FX512 and K22FN1M (And of course, K21FX512 and K21FN1M) can be evaluated using TWR-K21F120MA.

Regards,


Santiago

View solution in original post

0 Kudos
9 Replies
786 Views
santiago_gonzal
NXP Employee
NXP Employee

Hello,

MK22FN1M and MK22FN512 are two different MCU "families" (Although the partnumber can make you think they would be quite similar)

The 1Mb derivative has more peripherals and a different Flash controller, among other small differences (SD Card controller, for example). My advice would be to create a new project for this MCU and migrate your code.


What have you used? Kinetis SDK? Processor Expert?

Regards,

Santiago

0 Kudos
786 Views
sudhanshumehta
Contributor IV

Hi Santiago,

I thank you for your initial response.

I am using KSDK1.3.

I have checked its examples given in ksdk1.3.

In that, there is examples for "MK22FN256" and "MK22FN512" part but no example for "MK22FN1M" part.

Can you please guide me how to proceed. some example code or so.

Thanks

Sudhanshu

0 Kudos
786 Views
santiago_gonzal
NXP Employee
NXP Employee

The supported devices are the MK22FN1MA (Second revision of the silicon) but they are almost identical to MK22FN1M.

The evaluation board is TWR-K21F120M, and you have examples for it here:

C:\Freescale\KSDK_1.3.0\examples\twrk21f120m

Regards,

Santiago

0 Kudos
786 Views
sudhanshumehta
Contributor IV

Hi Santiago,

thank for your reply 1 more time.

I do not think that K21 example will work for k22 as well. is it?

I have MK22FN1MVLH12 part on my board.

As you suggested, i have checked "C:\Freescale\KSDK_1.3.0\examples" folder path and found examples for "twrk22f120m".

does this work for MK22FN1MVLH12 microcontroller?

Summerising: I am looking for some example project which can run on MK22FN1MVLH12 microcontroller.

Thanks

Sudhanshu

0 Kudos
787 Views
santiago_gonzal
NXP Employee
NXP Employee

Hello Sudhanshu,

Trust me, TWR-K21F120MA and your MCU are using almost the same MCU.

TWR-K22F and FRDM-K22F are using the "smaller" K22.

To summarize:

- K22FN256 and K22FN512 can be evaluated using FRDM-K22 and TWR-K22

- K22FX512 and K22FN1M (And of course, K21FX512 and K21FN1M) can be evaluated using TWR-K21F120MA.

Regards,


Santiago

0 Kudos
786 Views
sudhanshumehta
Contributor IV

Hi Santiago,

YOU are right and I thank you for this.

I have verified GPIO and UART with the way you explained.

Still need to implement CAN on this. working on it. so far all is going good.

Thanks

Sudhanshu

0 Kudos
786 Views
sudhanshumehta
Contributor IV

Just for the information of people following this link, CAN also worked on this.

786 Views
santiago_gonzal
NXP Employee
NXP Employee

Thanks for the feedback!

0 Kudos
786 Views
mjbcswitzerland
Specialist V

Hi

I would just use try K21 code and see how far you get.

If you require a processor independent solution you can also look at the uTasker project, which runs on

http://www.utasker.com/kinetis/TWR-K21F120M.html

http://www.utasker.com/kinetis/FRDM-K22F.html

http://www.utasker.com/kinetis/TWR-K22F120M.html

http://www.utasker.com/kinetis/BLAZE_K22.html

whereby the Blaze target uses the K22F1M0VH12.

Regards

Mark

0 Kudos