How to program a LPC 2420 microcontroller using a USB pendrive?

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

How to program a LPC 2420 microcontroller using a USB pendrive?

469 次查看
kunalthakur
Contributor I

Hi All

I am working on a project where we are using LPC 2420 in our product and earlier we were providing an option to upgrade the firmware of the product using serial connectivity (UART). But, now we want to provide an option to give the firmware upgrade through a USB pendrive which will contain the Hex file i.e. the firmware file.

Hardware configuration of USB is already done, but I am not able to find a solution as in how to proceed further with reading the file from the pendrive and reprogramming the external serial flash.

Request you to please help and suggest on how to proceed further.

0 项奖励
回复
1 回复

346 次查看
CarlosCasillas
NXP Employee
NXP Employee

Hi Kunal,

 

In order to access to files of a USB stick, it is required to have an embedded File System, in addition to the Mass Storage Class support of USB Host. You could take a look at the following link:

https://www.embeddedrelated.com/showthread/lpc2000/54659-1.php

Additionally, it is also required to implement a bootloader. The application notes provide guidelines on the external memory access on LPC24xx, and a similar application that you are asking, but implemented on ColdFire and Kinetis microcontrollers:

https://www.nxp.com/docs/en/application-note/AN10950.pdf

https://www.nxp.com/docs/en/application-note/AN4368.pdf

 
Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复