Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Second Stage Bootloader

Second Stage Bootloader

2006-05-23 by imacke76

Hello ,

I implemented a second stage bootloader in the first flash sector of
my Phillips LPC2294. The bootloader is able to update the flash by CAN
bus using IAP commands. The bootloader checks a signature and if this
is correct, it starts the program from the second flash sector. Before
starting the program in the second flash sector, interrupts are
disabled using the I-bit in the cpsr register. The bootloader then
loads the program counter with the start address from second flash sector.
In the second flash section, interrupts are re-mapped to ram. The ram
is re-organized.
Updating the second section with JTAG works fine. The Bootloader
checks the signature and is executing the code. Updating the second
section with my bootloader ist also working. But in some cases, the
code doesn�t   start executing. Comparing the uploaded code with the
dependent file says O.K.
Maybe, some registers has to be reinitialized!?

Any help would be appreciated. Thanks!

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.