can't get nxpUSBlib working with app uploaded by bootloader.

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

can't get nxpUSBlib working with app uploaded by bootloader.

933 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mozmck on Mon Mar 26 11:22:59 MST 2012
I'm using an LPC1752 chip with nxpUSBlib v0.92 and a USB bootloader I wrote.  The bootloader puts the application starting at 0x2000, and that seems to work fine.  I can upload an application and it will run, blink lights, etc.

But the problem comes trying to get usb to work in the application.  I used the same code from the bootloader that does work, and just changed one string in the descriptor, but it never connects to the computer.  I can toggle an led and see that my code has not hung, but the usb does not work.  With a bit of testing it appears that DcdIrqHandler() gets called but SlaveEndpointISR() never does.

Is there something in the library that uses hard-coded addresses or something that would cause it not to work when the starting address is 0x2000?  Any ideas?
Labels (1)
0 Kudos
Reply
2 Replies

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tuong on Mon Mar 26 21:14:09 MST 2012
Dear Mozmck,

How is your application now? Does eveything go fine? Can you share your bootloader design idea, how changing the clock setting helps?

With best regards,
Tuong Nguyen
0 Kudos
Reply

923 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mozmck on Mon Mar 26 16:09:04 MST 2012
Ok, I may have it figured out.  *stupid* mistake!  I had to change settings in system_LPC17xx.c in the bootloader for my clock settings, and I forgot to make all the same changes in system_LPC17xx.c for the application.
0 Kudos
Reply