MK10 Bootloader.

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

MK10 Bootloader.

Jump to solution
1,839 Views
john71
Senior Contributor I

I've opened a IAR project that resides in AN2295sw. The project has some configuration files
AN2295_TWR_K60_cfg.h
AN2295_TWR_KL25_cfg.h
But if want to use MK10 chip - what file should I use? Or how should I alter the existing file?

1 Solution
1,144 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

Please try with attached AN2295 software.

In IAR project, please select the [Kinetis K 120MHz Release] target:

pastedImage_1.png

Wish it helps.


Have a great day,
Ma Hui

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

View solution in original post

7 Replies
1,144 Views
john71
Senior Contributor I

I configured the project for my chip MK10DN512. But when I connect with Universal Bootloader utility it returns

Waiting for HC(S)08 reset ACK (timeout: 10s)...received 0xfc (good).

Calibration break pulse sent. Count: 3
Can't read MCU info. Could be protocol error.
(Or forgot to set single wire mode?)

So I set checkbox - Single Wire and I get

Waiting for HC(S)08/ColdFire/Kinetis reset ACK (timeout: 0s)...
Error receiving reset ACK - TIMEOUT.

How can I debug the problem?

0 Kudos
1,144 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Please use <AN2295_TWR_K60_cfg.h > for MK10 chip.

The chapter 7.7 Correct setting of configuration file provides more detailed info about Kinetis configuration file.

Wish it helps.


Have a great day,
Ma Hui

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

0 Kudos
1,144 Views
john71
Senior Contributor I

I see. Thank you.

I created AN2295_TWR_K10_cfg.h file and included it. But now I have some errors like

Error[Pe020]: identifier "SIM_SCGC6_FTFL_MASK" is undefined. I found the definition SIM_SCGC6_FTFL_MASK only in MKxxDZ10.h headers. For K10F12 there is no such definition.

Regards.

0 Kudos
1,144 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

There with some modules register difference with MK10 120MHz product vs. MK60 100MHz product.

The project header file need change to use "MK10F12.h" at <main.h>.


Have a great day,
Ma Hui

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

0 Kudos
1,144 Views
john71
Senior Contributor I

So I should manually add missing definitions? Or there is no such registers in MK10F? In this case - it's a lot of changing, I should dig deep to adapt the chip for the bootloader.

Well...I did some digging around - there is no FTFL for KxxF series, only for KxxD. I don't know what developers do to make K60 work in demo project. May be they could share? Or should I go crazy chasing things that should be obvious and explained?

0 Kudos
1,145 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

Please try with attached AN2295 software.

In IAR project, please select the [Kinetis K 120MHz Release] target:

pastedImage_1.png

Wish it helps.


Have a great day,
Ma Hui

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

1,144 Views
john71
Senior Contributor I

Thanks a lot my friend! Awesome!

0 Kudos