Forum Discussion
Stratix 10 HPS LED example
- 1 month ago
We are using Quartus 26.1 for all these activites.
At power on boot of this HPS sytem we see a restart happening after these messages. This happens once every power on. after the restart it boost straight into the linux. Attached is the complete log of boot messages. What could be the issue.
[ 5.041106] sdhci: Secure Digital Host Controller Interface driver
[ 5.047287] sdhci: Copyright(c) Pierre Ossman
[ 5.051777] Synopsys Designware Multimedia Card Interface Driver
[ 5.058011] dw_mmc ff808000.mmc: IDMAC supports 32-bit address mode.
[ 5.064613] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.070312] dw_mmc ff808000.mmc: Using internal DMA controller.
- ShunJingG_Altera2 days ago
New Contributor
Hi Sajeev_antony,
What you see
- Cold power-on → U-Boot → Linux starts → abrupt restart ~5 s into kernel (no panic text)
- Second boot succeeds to Linux; no further restarts until next power cycle
- SPL reports Reset state: Cold after the restart
Two plausible cause:
- First-power-on reset race (FPGA/SDM/board timing) — fits “once per power-on, second try OK at same kernel point”
- Watchdog — U-Boot starts watchdog@ffd00200 (10 s); Linux must take over. On S10, WDT timeout can be configured as cold reset, so “Cold” does not rule WDT out. But ~5 s kernel time and identical second-pass timing make a simple 10 s timeout less convincing.
How to prove it:
- After the spurious restart, at U-Boot: md.l 0xffd11000 1 (rstmgr status). Compare to intentional wdt expire.
- One trial: wdt stop before bootm. If double-boot disappears → WDT involved; if not → look at FPGA/SDM/cold reset path.
Fix direction (after proof):
- If WDT: hand over to Linux (enable driver + service it), or stop in U-Boot only until Linux owns it — do not leave WDT off permanently.
- If FPGA/SDM: fix first-boot sequencing (config/bridges/nCONFIG/power) before HPS runs application software. refer: https://docs.altera.com/r/docs/683222/25.3.1/stratix-10-hard-processor-system-technical-reference-manual/signal-behavior-event-diagrams