I'm using scb_reset_system() just fine on the L151 parts, fwiw. Cheers, Karl P
On 01/26/2014 01:05 AM, Chuck McManis wrote: > So I was playing around with an example I was writing and wanted to initiate a > software reset, basically duplicated what pushing the reset button does. > > In various docs this is called a "Software System Reset" and there is a > function > in the cm3 sub section of loc3 that does something kinda like the ARM > documents > called : scb_reset_system() > > That is defined as : > > void scb_reset_system(void) > { > SCB_AIRCR = SCB_AIRCR_VECTKEY | SCB_AIRCR_SYSRESETREQ; > > while (1); > } > > And presumably one calls this from your source and "poof!" you have reset the > system. Except it doesn't, it hangs there in the while(1); which seems a bit > odd. > > I'm guessing this code is untested? > --Chuck > > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > > > > _______________________________________________ > libopencm3-devel mailing list > libopencm3-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libopencm3-devel > ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ libopencm3-devel mailing list libopencm3-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libopencm3-devel