UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer classic037
Observer
8,568 Views
Registered: ‎03-09-2016

How to software reset or reboot? (bare metal)

hi.

I bare metal state wants in a way to reboot.

 

software reset or reboot api What is it?

 

Thank you,

0 Kudos
10 Replies
Scholar austin
Scholar
8,563 Views
Registered: ‎02-27-2008

Re: How to software reset or reboot? (bare metal)

c,

 

If you need to reload everything, that is a restart (boot, reconfigure).

 

If you need to just restart the processor system, that is a reset (goes to the default execution start address of your program without touching anything else.

 

If you need to reconfigure the processor peripherals, that is a boot from the first stage boot loader (boot), too.

 

The safest way to restart is to restart everything.  That is usually by the PROG_b pushbutton, or automatically on power ON.

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Observer classic037
Observer
8,553 Views
Registered: ‎03-09-2016

Re: How to software reset or reboot? (bare metal)

Austin Lesea

 

Thank you Your advice.

 

I use to Microzed. and I want Save any network information and want to reboot.

So. Not a physical button, want to re-start the SW manner.

 

Thank you,

 

 

0 Kudos
Scholar austin
Scholar
8,531 Views
Registered: ‎02-27-2008

Re: How to software reset or reboot? (bare metal)

c,

 

Do you have some non-volatile memory where you can store the information you need?

 

Upon a self generated PROG_b everything is reloaded.

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Observer classic037
Observer
8,517 Views
Registered: ‎03-09-2016

Re: How to software reset or reboot? (bare metal)

Moderator

 

Do you have some non-volatile memory where you can store the information you need?

- Yes.  I use Serial Flash memory.

 

Upon a self generated PROG_b everything is reloaded.

- How to work PROG_b? (SW in the way)

 

Thank you.

 

0 Kudos
Scholar austin
Scholar
8,493 Views
Registered: ‎02-27-2008

Re: How to software reset or reboot? (bare metal)

c,

 

I see my problem.  In ug585, section 26, the reset sources are detailed.  It seems I really meant PS_POR_B is used to reset and reconfigure (clears PS, loads FSBL which includes the PL bitstream.

 

Where you can use the [PCFG_PROG_B] bit in software to trigger a re-load of the PL, I am not seeing a way from software to execute the PS_POR_B pin from a software instruction like you can for the PROG_b pin.

 

Sorry to confuse you.  I suggest you go back through section 26, and see if some combination of resets (pins or instructions) accomplishes your task.

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Observer classic037
Observer
8,396 Views
Registered: ‎03-09-2016

Re: How to software reset or reboot? (bare metal)

dear Moderator

 

Thank you. M

 

I solved the problem thanks to your advice.

 

 

0 Kudos
Visitor mkrll
Visitor
5,383 Views
Registered: ‎04-05-2017

Re: How to software reset or reboot? (bare metal)

I know, this is an old thread, but how did you solve the problem?

I have the same problem...

0 Kudos
5,368 Views
Registered: ‎05-08-2017

Re: How to software reset or reboot? (bare metal)

Hi mkrll,

 

In my situation, I found the best solution to perform a software reset was to unlock the SLCR register by writing the value 0xDF0D to SLCR_UNLOCK (0XF8000008) and performing a PSS reset by writing a 0x1 to PSS_RST_CTRL (0xF8000200).

 

For further information, please refer to UG585 - Zynq 7000 All Programmable SoC Technical Reference Manual.

Visitor mkrll
Visitor
4,740 Views
Registered: ‎04-05-2017

Re: How to software reset or reboot? (bare metal)

Thanks @bradleygamble! It works for me :)

0 Kudos
Observer jqsam1
Observer
394 Views
Registered: ‎02-16-2015

Re: How to software reset or reboot? (bare metal)

Hi. Does this work when zynq booted in linux instead of bare metal? Thanks.

0 Kudos