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.
call bootloader in lpc2148
Started by ●July 15, 2008
Reply by ●July 15, 20082008-07-15
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.
>
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.
>
Reply by ●July 16, 20082008-07-16
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.
>
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.
>