Cortex-M3 Bootloader

Hey All,

I'm looking at implementing a boot loader in to project. The communication interfaces that i will be using are RS-485 and Ethernet. The specific MCU i'm using is a LPC1788 from NXP. I have looked around forums to find a boot loader that i could use but i have had no luck. If someone could give me example code or point me in the write direction for implementing it this would be much appreciated.

Matt

Parents
  • I cannot provide you with code because our ethernet boot code is to specific to our user application:

    But if you want to make ethernet boot loader you need to manage the following items.

    1.- Reading and writing data using ethernet port. Many examples are provides in sample code.

    2.- You need to learn how to create user applications on kiel project with memory offset so it doesn't overlap your ethernet bootloader.

    3.- Creation and interpretation of HEX file, you need to set your project to generate the HEX file for user application. You need to extract the content of HEX file and transfer it with ethernet.

    search for "parallel flash format intel hex" in google to understand HEX format.

    4.- Using IAP (in application programing) to write the content of your HEX file into flash memory. There is a sample project about how to use IAP.

    5.- Jumping from boot loader, once you have downloaded the user application to flash you need to jump to user application, many threads on this forum deal with how to set vector interrupt table and how to jump to user application.

Reply Children
More questions in this forum