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

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

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

366 Views
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 Kudos
1 Reply

243 Views
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 Kudos