LPC1343 USB MSD, interrupt

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

LPC1343 USB MSD, interrupt

1,388 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobi-one on Thu May 12 14:38:21 MST 2011
Is it possible after copying the new bin firmware , after umpluging the usb. Some kind of reset to occur, and start the new program. I did not understand the Reinvoke function from the auto isp example. But it sounds logical if something can be changed or added in order to do that.
0 Kudos
Reply
6 Replies

1,359 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Fri May 13 12:51:18 MST 2011
Hi bobi-one,

I had sent this to jharwood to get his opinion. (slightly modified to address you as the subject)

Couldn’t you connect the USB V+ line to a timer capture input and cause an interrupt to fire on a low falling edge and call  NVIC_SystemReset() in the timer ISR?

Or maybe I didn’t understand your first post correctly.  Is this after flashing a new program and you want to auto reset the board, therefore what I mentioned above might not work?

jharwood may be testing this approach already.

Beer,  mmm.:)
0 Kudos
Reply

1,359 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jharwood on Fri May 13 10:57:28 MST 2011
The only software option I can think of is to write your own secondary boot loader. It would detect the USB disconnect and call NVIC_SystemReset()

But such a boot loader is going to eat up a lot of available flash.
0 Kudos
Reply

1,359 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobi-one on Fri May 13 08:16:29 MST 2011
Sounds neat :) and it will probably work, I am searching the possibilities of a software solution. Perhaps some core register, or special assembler command :)
0 Kudos
Reply

1,359 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jharwood on Thu May 12 15:59:34 MST 2011
Can you somehow gate the USB V+ line onto the processor reset pin just before re-invoking the ISP ?

It would need to be a negative triggered one-shot with open collector output that pulls the reset line low momentarily if enabled by a GPIO pin.
0 Kudos
Reply

1,359 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobi-one on Thu May 12 15:24:40 MST 2011
You guys will have a full truck of beer if the university commission approve my device :D
0 Kudos
Reply

1,359 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Thu May 12 14:49:22 MST 2011
We will answer you only if you pay us royalties when you sell your boards.:D:D

I liked your new video.  The board looks good.
0 Kudos
Reply