Porting AN2295 serial Bootloader for MK20D256

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

Porting AN2295 serial Bootloader for MK20D256

跳至解决方案
1,163 次查看
harshpatel
Contributor IV

Hello everyone

Greetings of the Day

  • I Required to prepare AN2295 serial Bootloader code for freescale MK20D256 controller
  • I have successfully builed AN2295 serial bootloader for freescale MK60D256 (TWR-k60 board). It's working fine.
  • I have reviewed board files of both the controllers. I found most of things will Same.
  • An2295sw Serial bootloader link:

         Search Results: an2295sw

MY QUESTIONS ARE:

1] is there same code will work for Mk20D256?

2] If changes required than which files need to modify to port AN2295 serial bootloader code of MK60D256 to MK20D256?

Waiting for your valuable inputs...

Thanks

Regards

Harsh

1 解答
924 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Harsh,

It mainly need change the user setting file , for example , under the AN2295, there is a file "AN2295_TWR_K20D50_cfg.h",

(AN2295SW\an2295sw\src\Kinetis\CommonSource\AN2295_TWR_K20D50_cfg.h)

you can refer to your board and chip to change it to you , for example , the UART port  , the size of port ...

this file is refer to the chip of 128K size flash , you can change it to

#define KINETIS_FLASH  FLASH_256K

and so on .

I recommend you first check whether the UART can work well ,:

UART_PutChar(0xd1);

then debug step by step , when encounter problem check the Reference manual fund the difference between the two chip , then change it .

And in the procedure , if you have any question , you can ask here without any hesitate.

Hope it helps!

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

Have a great day,

Alice

在原帖中查看解决方案

1 回复
925 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Harsh,

It mainly need change the user setting file , for example , under the AN2295, there is a file "AN2295_TWR_K20D50_cfg.h",

(AN2295SW\an2295sw\src\Kinetis\CommonSource\AN2295_TWR_K20D50_cfg.h)

you can refer to your board and chip to change it to you , for example , the UART port  , the size of port ...

this file is refer to the chip of 128K size flash , you can change it to

#define KINETIS_FLASH  FLASH_256K

and so on .

I recommend you first check whether the UART can work well ,:

UART_PutChar(0xd1);

then debug step by step , when encounter problem check the Reference manual fund the difference between the two chip , then change it .

And in the procedure , if you have any question , you can ask here without any hesitate.

Hope it helps!

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

Have a great day,

Alice