Software reset for the MicroBlaze

Hey all,

I was wondering how to write a software reset in C-code for the Xilinx Microblaze.

Regards

Karel

Reply to
Karel
Loading thread data ...

Jump to the reset vector ?

Reply to
Simon Peacock

You need to generate an OPB reset signal, otherwise your peripherals are not reset.

A single-bit GPIO driven through a pulse widening state machine , with its output tied to the OPB_Rst signal, is one simple way.

John

Reply to
John Williams

That would be a hardware reset .. not software :-).... but it depends on what you call a hard reset

Sim> > Jump to the reset vector ?

Reply to
Simon Peacock

pseudo-code: disable interrupts jump to address 0 assembly: mts MSR,R0 bra R0

REgrads,

Zara

Reply to
Zara

OK, I'll give you that :) my reading of the question was "how do I initiate a reset from within software".

In Linux land we call it "shutdown -r now"

John

Reply to
John Williams

In windoze land .. its called the power switch.. :-)

Reply to
Simon Peacock

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.