USB Host bootloader

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

USB Host bootloader

259 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by elecdesigner on Tue Aug 04 04:59:31 MST 2015
I tested AN11628 LPC177x_8x Secondary USB Host Bootloader by programming periph_blinky example with a usb flash disk and it works fine. But when I write my own led blinking code, it does not work:

#include "lpc177x_8x.h"

int main(void)
{
 unsigned long delay;  
 LPC_GPIO3->DIR=1<<25; 
 
 while(1)
 { 
 for(delay=0;delay<10000000UL;delay++);
 LPC_GPIO3->SET=(1<<25);
 for(delay=0;delay<10000000UL;delay++);
 LPC_GPIO3->CLR=(1<<25);
 }   
}


I changed IROM1 start address to 0x5000 according to AN11628 page 9. The bootloader changes SCB->VTOR to 0x5000 before jumping to application section. So I modified and also commented VTOR register initialization in SystemInit() function. But it still does not work. I appreciate any comment or advice for solving the problem.
Labels (1)
0 Kudos
0 Replies