What is best way for communication with PC when MCU runs in bootload mode?

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

What is best way for communication with PC when MCU runs in bootload mode?

跳至解决方案
1,049 次查看
eunseokjung
Contributor II

Hi, all.

I'm curious about bootload communication way.

First my option is polling mode when MCU communicates with PC by UART.

Second is interrupt mode.

What is best option for managing my device?

标签 (1)
0 项奖励
回复
1 解答
963 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Eunseok,

I think no matter using the polling mode or interrupt mode is Ok for MCU to receive the data from the PC correctly.

The key of the communication is guaranteeing the process follow the corresponding protocol.

I'd like to suggest that you can refer to AN2295 note and its code for details which share an example of serial bootloader.

Please learn more details about them through the link as below.

http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf

cache.freescale.com/files/microcontrollers/doc/app_note/AN2295SW.zip
Have a great day,
Ping

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
964 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Eunseok,

I think no matter using the polling mode or interrupt mode is Ok for MCU to receive the data from the PC correctly.

The key of the communication is guaranteeing the process follow the corresponding protocol.

I'd like to suggest that you can refer to AN2295 note and its code for details which share an example of serial bootloader.

Please learn more details about them through the link as below.

http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2295.pdf

cache.freescale.com/files/microcontrollers/doc/app_note/AN2295SW.zip
Have a great day,
Ping

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

0 项奖励
回复