Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

Cyclone V HPS Baremetal Watchdog Error

roelof
Novice
616 Views

I Am trying to get the Watchdog to generate a warm reset on my HPS Baremetal Application.

My Setup:

Cyclone V custom board

Boot setup; BootRom -> Preloader -> HPS baremetal

Preloader and HPS loaded from QSPI Flash

Preloader in On Chip RAM and HPS in SDRAM

 

I use the following code to trigger the warm reset from the watchdog:

ALT_STATUS_CODE status = ALT_E_SUCCESS;
//status |= alt_wdog_int_clear(ALT_WDOG0);
//set to 90 second watchdog timer
if (status == ALT_E_SUCCESS) {status = alt_wdog_counter_set(ALT_WDOG1, 0);
if (status == ALT_E_SUCCESS) {status = alt_wdog_response_mode_set(ALT_WDOG1, ALT_WDOG_WARM_RESET ); }
if (status == ALT_E_SUCCESS) {status = alt_wdog_start(ALT_WDOG1); }

 

I can see the watchdog count down, then the HPS goes into Hung/Reset state, but does not recover or boot again.

Does anyone know what I am doing wrong. Should the warm reset not trigger the HPS to reload from the application Entry point?

 

0 Kudos
1 Solution
EBERLAZARE_I_Intel
598 Views

Hi,

 

May I know the Quartus version that you are using?

 

How did you compile the preloader? Is it using the bsp-editor?

 

Regarding the reset issue, could you check below documentation since you are using Cyclone V SoC and QSPI to boot if the issue that you are seeing related, and that you may try the solutions mentioned:

https://rocketboards.org/foswiki/Documentation/SocBoardQspiBoot

 

View solution in original post

0 Kudos
3 Replies
EBERLAZARE_I_Intel
599 Views

Hi,

 

May I know the Quartus version that you are using?

 

How did you compile the preloader? Is it using the bsp-editor?

 

Regarding the reset issue, could you check below documentation since you are using Cyclone V SoC and QSPI to boot if the issue that you are seeing related, and that you may try the solutions mentioned:

https://rocketboards.org/foswiki/Documentation/SocBoardQspiBoot

 

0 Kudos
roelof
Novice
584 Views

Good day EBERLAZARE_I_Intel,

 

Thank you for your quick response. I went through the document you provided and was able to resolve my issue. The QSPI needs to be reset before the watchdog triggers - else the HPS cannot boot.

 

Thank you 

 

 

0 Kudos
EBERLAZARE_I_Intel
577 Views

Helo,

 

Glad I could help!

0 Kudos
Reply