How create custom bootloader for LPC1788 (How fix JUMP problem)?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How create custom bootloader for LPC1788 (How fix JUMP problem)?

1,691 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Tue Oct 07 08:19:47 MST 2014
How create custom bootloader for LPC1788?
Labels (1)
0 Kudos
9 Replies

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Sat Oct 11 14:13:56 MST 2014

Quote: LabRat

Quote: gbg
How create custom bootloader for LPC1788?



http://www.lpcware.com/content/nxpfile/an10866-lpc1700-secondary-usb-bootloader




how change it for 1788?
change target to 1788 is enough
0 Kudos

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Mon Feb 16 04:06:36 MST 2015
:bigsmile:
Ok , i solved problem and now work for me
0 Kudos

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Mon Feb 02 12:58:06 MST 2015
sorry
i can not solve the problem
0 Kudos

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nil on Mon Feb 02 09:45:31 MST 2015
Hi ,
    I also have the same problem.At the time of jump my controller going to reset.If you any solution please help me.
0 Kudos

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Mon Jan 12 05:37:04 MST 2015
my sct file in user app is :
LR_IROM1 0x00000000 0x00080000  {    ; load region size_region
  ER_IROM1 0x00000000 0x00080000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }
  RW_IRAM1 0x10000000 0x00010000  {  ; RW data
   .ANY (+RW +ZI)
  }
  RW_RAM1 0xA0000000 UNINIT 0x02000000  {  ; RW data
   * (VRAM, GUI_RAM, GUIDEMO_STACK, FS_RAM, IP_RAM, USB_RAM)
  }
}



change it to :

LR_IROM1 0x00006000 0x00079FFF  {    ; load region size_region
  ER_IROM1 0x00006000 0x00079FFF  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }
  RW_IRAM1 0x10000000 0x00010000  {  ; RW data
   .ANY (+RW +ZI)
  }
  RW_RAM1 0xA0000000 UNINIT 0x02000000  {  ; RW data
   * (VRAM, GUI_RAM, GUIDEMO_STACK, FS_RAM, IP_RAM, USB_RAM)
  }
}


but after jump to user code program not running

in debug stop in this line:

SysTick_Handler PROC
                EXPORT  SysTick_Handler           [WEAK]
                B       .
                ENDP
0 Kudos

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Sun Jan 11 14:19:29 MST 2015
I create my bootloder

when i try to jump user code bootloader program run again (or restart micro) , my jump does not go to application,and back to bootloader

 void (*user_code_entry)(void);
  __disable_irq();
  __set_MSP(*(__IO uint32_t*)FLASH_PROG_AREA_START);
  SCB->VTOR = FLASH_PROG_AREA_START & 0x1FFFFF80;
  user_code_entry = *(void (**)(void)) (FLASH_PROG_AREA_START+4);
    __enable_irq();
  user_code_entry();


and i try this code found in doc an10866
but run BL again

__asm void boot_jump( uint32_t address ){
   LDR SP, [R0];Load new stack pointer address
   LDR PC, [R0, #4];Load new program counter address
}

void execute_user_code(void)
{
/* Change the Vector Table to the USER_FLASH_START 
in case the user application uses interrupts */
SCB->VTOR = FLASH_PROG_AREA_START & 0x1FFFFF80;

boot_jump(FLASH_PROG_AREA_START);
}

FLASH_PROG_AREA_START is 0x6000

in debug mode :
  user_code_entry is 0x27D but jump to 0x27C!!!!!!

0 Kudos

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbg on Tue Oct 14 14:58:48 MST 2014
I need RS232 bootloader
i want customize it.
0 Kudos

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dcr.embedded on Mon Oct 13 05:22:51 MST 2014
Hi,

I am going to start developing Ethernet boot loader for LPC1788 controller. any one suggest me proper document and sample code with IAR ARM IDE.

-Dinesh
0 Kudos

1,118 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Tue Oct 07 08:31:18 MST 2014

Quote: gbg
How create custom bootloader for LPC1788?



http://www.lpcware.com/content/nxpfile/an10866-lpc1700-secondary-usb-bootloader
0 Kudos