EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

call bootloader in lpc2148

Started by thonguyen02 July 15, 2008
hi,
I use usb bootloader for lpc214x which I download from
http://www.standardics.nxp.com/support/documents/microcontrollers/zip/an10711.zip
This bootloader store at address 0x0 - 0x2000
and user application at 0x2000- ...

Inside my user application I want to call the bootloader by:

typedef void (*GO)(void);
go_entry = (GO) (start_adr);
go_entry();

But it did not work.
Can anyone show me how to call the bootloader inside my user application.

PS: I check the bootloader which can call my user application by:

void (*user_code_entry)(void);
user_code_entry = (void (*)(void))USER_FLASH_START;
user_code_entry();

but I can not call the bootloader with the same way.

An Engineer's Guide to the LPC2100 Series

the start_adr is 0x00
and USER_FLASH_START is 0x2000

--- In l..., "thonguyen02" wrote:
>
> hi,
> I use usb bootloader for lpc214x which I download from
>
http://www.standardics.nxp.com/support/documents/microcontrollers/zip/an10711.zip
> This bootloader store at address 0x0 - 0x2000
> and user application at 0x2000- ...
>
> Inside my user application I want to call the bootloader by:
>
> typedef void (*GO)(void);
> go_entry = (GO) (start_adr);
> go_entry();
>
> But it did not work.
> Can anyone show me how to call the bootloader inside my user
application.
>
> PS: I check the bootloader which can call my user application by:
>
> void (*user_code_entry)(void);
> user_code_entry = (void (*)(void))USER_FLASH_START;
> user_code_entry();
>
> but I can not call the bootloader with the same way.
>

can anyone show me how to do it?

thanks
--- In l..., "thonguyen02" wrote:
>
> hi,
> I use usb bootloader for lpc214x which I download from
>
http://www.standardics.nxp.com/support/documents/microcontrollers/zip/an10711.zip
> This bootloader store at address 0x0 - 0x2000
> and user application at 0x2000- ...
>
> Inside my user application I want to call the bootloader by:
>
> typedef void (*GO)(void);
> go_entry = (GO) (start_adr);
> go_entry();
>
> But it did not work.
> Can anyone show me how to call the bootloader inside my user
application.
>
> PS: I check the bootloader which can call my user application by:
>
> void (*user_code_entry)(void);
> user_code_entry = (void (*)(void))USER_FLASH_START;
> user_code_entry();
>
> but I can not call the bootloader with the same way.
>


The 2024 Embedded Online Conference