NVIC_SystemReset() can't reset MCU?

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

NVIC_SystemReset() can't reset MCU?

1,291 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andy22 on Thu Dec 06 18:47:33 MST 2012
Hi guys
What i want is just reset my MCU by calling the function NVIC_SystemReset(). But it doesn't work.
I just want my configuration of report rate take effect when USB re-enumeration ,it generates errors as follows:

33.1 USTS c0000011 xact error 2.1.0 16:22:20.768 hidclass
34.2 USTS c0000011 xact error 3.1.0 16:22:20.768 hidclass
35.3 USTS c0000011 xact error 4.1.0 16:22:20.768 hidclass
34 RESET 5.1.0 16:22:20.768 hidusb
33.1 USTS c0000011 xact error 6.1.0 16:22:20.768 hidclass
35.3 USTS c0000011 xact error 7.1.0 16:22:20.768 hidclass
34 ok 5.2.0 16:22:21.143
34.2 RESET 8.1.0 16:22:21.143 hidusb

how can i re-enum the USB? Why i can't capture the command such as GET DESCRIPTOR?
thanks

Labels (1)
0 Kudos
3 Replies

885 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tianzhizhou@leyard.com on Sun Nov 24 23:25:32 MST 2013
It works, thank you.
0 Kudos

885 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Daniel Widyanto on Wed Dec 19 00:16:06 MST 2012
Hi all,

The LPC1700 does supporting SYSRESETREQ, and NVIC_SystemReset() should work without any issue. We have scheduled update in LPC17xx User Manual to reflect this.

Thank you for brought this up
0 Kudos

885 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfbsoftware on Sat Dec 15 16:21:34 MST 2012
There is some doubt about whether NVIC_SystemReset() works or not on LPC17xx systems. See the message 'LPC17xx SCB->AIRCR:SYSRESETREQ' in the Yahoo LPC2000 forum:

http://tech.groups.yahoo.com/group/lpc2000/message/58269
0 Kudos