Yahoo Groups archive

Lpc2000

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

Message

Re: Activating Boot Loader for LPC2000 Flash Untility

2004-07-08 by lpc2100

> Sorry, I've lost track somewhere here.  What, exactly, did you 
verify?

Re-entry in to bootloader ISP without touching the P0.14 pin when the 
device already had a valid user code.

re_enter_bootloader_isp
{
    volatile unsigned long * memmap;
    volatile unsigned long * ioclr;
    volatile unsigned long * iodir;
    volatile unsigned long * pinsel0;
    void (*bootloader_entry)(void);
    unsigned long temp;

    memmap  = (volatile unsigned long *)0xE01FC040;
    ioclr   = (volatile unsigned long *)0xE002800C;
    iodir   = (volatile unsigned long *)0xE0028008;
    pinsel0 = (volatile unsigned long *)0xE002C000;

    *memmap = 0x0;

    temp = *pinsel0;
    *pinsel0 = temp & 0xFFFFFFF3;

    temp = *iodir;
    temp = temp | 0x4000;
    temp = temp & 0xFFFFFFFD;
    *iodir = temp;

    *ioclr = 0x4000;

    bootloader_entry = (void (*)(void))(0x0);
    bootloader_entry();
}

Attachments

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.