USB Host bootloader

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB Host bootloader

603 次查看
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.
标签 (1)
0 项奖励
回复
0 回复数