Forum Discussion
Intermittent DE10-Standard error starting GDB server with quartus_hps
Hello,
We have 15 DE10-Standard boards being used with Quartus 18.1 and the associated version of Altera Monitor Program on Ubuntu 24.04 (amd64).
Generally the boards work without issue, however in the Monitor Program we occasionally see 'Download System - Partial Success: The system has successfully downloaded onto the board, but HPS components could not be configured.' Power cycling the board doesn't seem to resolve the error, nor does swapping the board to a different desktop. After a number of tries the error will go away. We haven't been able to isolate an exact pattern but issue doesn't appear random either, it will keep showing up for certain boards, and then go away, then show up on other boards.
Another symptom we see is that when a board downloads the systems successfully, during the final step of the process the JTAG TX LED on the board appears to turn solid green. On the boards that hang and fail, the same LED flashes rapidly while the process hangs.
The monitor program logs show the following commands are run before the error appears:
$ /home/$USER/DE10/monitorprogramtutorial/
$ make clean
# The board name in quotes below is variable and appears to be unique to each board or connection
$ /opt/intelFPGA_lite/18.1/quartus/bin64/quartus_pgm -c "DE-SoC [1-10]" --auto
$ quartus_pgm -c "DE-SoC [1-10]" -m jtag -o "P;/opt/intelFPGA_lite/18.1/University_Program/Computer_Systems/DE10-Standard/DE10-Standard_Computer/verilog/DE10_Standard_Computer.sof@2"
$ quartus_hps --cable="DE-SoC [1-10]" -o GDBSERVER --gdbport0=3212 --preloader=/opt/intelFPGA_lite/18.1/University_Program/Monitor_Program/arm_tools/u-boot-spl.de10-standard.srec --preloaderaddr=0xffff14f0Running these commands manually results in the final command either:
1. Starting a GDB server very quickly:
>>Resetting HPS.
>>Downloading preloader.......
>>Program loaded. PC set to program entry (0xFFFF0000)
>>Setting vector base address register to: 0xffff0000
>>Running preloader..
>>Preloader successfully run.
Starting GDB Server.
Listening on port 3212 for connection from GDB2. Hanging for a long time when 'Downloading preloader.......' and then failing at the 'Running preloader...................' stage and hanging indefinitely. Ending the process with Ctrl+C shows:
Error: Encounter JTAG AJI error while accessing HPS
Error: send_access_data() error while accessing DP Register
Error: Fail to select Access Port
Error: Fail to access Bank 0x0 of Port 1
Error: Fail to READ ACCESS to the Physical Reg
Error: AJI failed to send data
Error: Encounter JTAG AJI error while accessing HPS
Error: send_access_data() error while accessing DP Register
Error: Fail to select Access Port
Error: Fail to access Bank 0x0 of Port 1
Error: Fail to READ ACCESS to the Physical Reg
Error: Fail to enable DEBUG feature
Error: AJI failed to send data
Error: Encounter JTAG AJI error while accessing HPS
Error: send_access_data() error while accessing DP Register
Error: Fail to select Access Port
Error: Fail to access Bank 0x0 of Port 1
Error: Fail to READ ACCESS to the Physical Reg
Error: Failed to load program.
Error: AJI failed to send data
Error: Encounter JTAG AJI error while accessing HPS
Error: send_access_data() error while accessing DP Register
Error: Encounter JTAG AJI error while reading Control/Status Register
Error: AJI failed to send data
Error: Encounter JTAG AJI error while accessing HPS
Error: send_access_data() error while accessing DP Register
Error: Fail to select Access Port
Error: Fail to access Bank 0x0 of Port 0
Error: Fail to READ ACCESS to the Physical Reg
Error: Fail to write to MPU Module Reset Register
Error: Engine failed to set down the hardware
Error: Quartus Prime Programmer was unsuccessful. 0 errors, 0 warnings
Error: Peak virtual memory: 187 megabytes
Error: Processing ended: Tue Aug 11 11:44:38 2026
Error: Elapsed time: 00:05:05
Error: Total CPU time (on all processors): 00:00:01Any thoughts or suggestions are greatly appreciated.
9 Replies
- tehjingy_Altera
Regular Contributor
Hi
What is the Jtag clock frequency that you are using?
Could you try reducing the JtagClock frequency ? Try 16Mhz or 6Mhz.You could use the command below to change the frequency:
jtagconfig --setparam <cable_index> JtagClock <frequency>- fpga-user
New Contributor
Hello,
Thanks for the reply. It looks like the JtagClockfrequency is set to 24 Mhz by default.
However, when running quartus_hps one of the output lines is "Successfully change hardware frequency to 16Mhz":
quartus_hps --cable="$FPGADEV" -o GDBSERVER --gdbport0=3212 --preloader=/opt/intelFPGA_lite/18.1/University_Program/Monitor_Program/arm_tools/u-boot-spl.de10-standard.srec --preloaderaddr=0xffff14f0 Info: ******************************************************************* Info: Running Quartus Prime Programmer Info: Version 18.1.0 Build 625 09/12/2018 SJ Lite Edition Info: Copyright (C) 2018 Intel Corporation. All rights reserved. Info: Your use of Intel Corporation's design tools, logic functions Info: and other software and tools, and its AMPP partner logic Info: functions, and any output files from any of the foregoing Info: (including device programming or simulation files), and any Info: associated documentation or information are expressly subject Info: to the terms and conditions of the Intel Program License Info: Subscription Agreement, the Intel Quartus Prime License Agreement, Info: the Intel FPGA IP License Agreement, or other applicable license Info: agreement, including, without limitation, that your use is for Info: the sole purpose of programming logic devices manufactured by Info: Intel and sold by Intel or its authorized distributors. Please Info: refer to the applicable agreement for further details. Info: Processing started: Mon Aug 17 11:30:35 2026 Info: Command: quartus_hps --cable="DE-SoC [1-4]" -o GDBSERVER --gdbport0=3212 --preloader=/opt/intelFPGA_lite/18.1/University_Program/Monitor_Program/arm_tools/u-boot-spl.de10-standard.srec --preloaderaddr=0xffff14f0 Current hardware is: DE-SoC [1-4] Successfully change hardware frequency to 16Mhz Found HPS at device 1 Double check JTAG chain HPS Device IDCODE: 0x4BA00477 AHB Port is located at port 0 APB Port is located at port 1 Double check device identification ... >>CPU0 halted at 0x2fa4. >>Resetting HPS. >>Downloading preloader....... >>Program loaded. PC set to program entry (0xFFFF0000) >>Setting vector base address register to: 0xffff0000 >>Running preloader..After the above command is run 'jtagconfig --getparam "DE-SoC [1-4]" JtagClock' then shows the JtagClock is set to 16Mhz until the board is power cycled.
I tested our boards again today, and 2 showed the issue again. I tried power cycling these boards, manually setting the JtagClock with 'jtagconfig --setparam <cable_index> JtagClock <frequency>' to 16Mhz and 6Mhz before running quartus_hps, however the same issue kept persisting. No matter how many times I powered the 2 boards off and on they kept hanging at 'Downloading preloader...' and 'Running preloader...'
I then noticed after powering off the boards I could feel they were quite hot in the general area of the EPM570GF chip. Instead of power cycling the board quickly and trying the test again, I waited 1-2 minutes for the board to cool down. I then tested again and the quartus_hps command ran without issue and the GDB server started successfully.
I will test all the boards over the next few days and see if it's only these few boards which have this problem, or if it shows up intermittently across all devices. Any other suggestions are greatly appreciated. Thanks again.
- tehjingy_Altera
Regular Contributor
Hi fpga-user
Sorry for the late reply.
Are you running a custom preloader or the GSRD preloader? If it is custom could you share what changes that you made to the preloader?
- fpga-user
New Contributor
Hi all,
We haven't made any further progress on this issue, it still seems intermittent across all boards. I ran a usb packet capture with wireshark while running 'quartus_hps --cable="$FPGADEV" -o GDBSERVER --gdbport0=3212 --preloader=/opt/intelFPGA_lite/18.1/University_Program/Monitor_Program/arm_tools/u-boot-spl.de10-standard.srec --preloaderaddr=0xffff14f0' during a run that ended with a successful start of the gdb server and a run that hung/failed. I don't see any major clues in the captures, but I'm not very familiar with analyzing them. Curious if there might be any other suggestions or ideas?
- fpga-user
New Contributor
Hello,
We've done some further testing using openFPGALoader and OpenOCD and wondering if what we have found might be related to the above preloader issue.
1. We first used quartus_cpf to create an uncompressed .rbf from intelFPGA_lite/18.1/University_Program/Computer_Systems/DE10-Standard/DE10-Standard_Computer/verilog/DE10_Standard_Computer.sof
2. We then programmed the SRAM with: openFPGALoader -c usb-blasterII --probe-firmware/opt/intelFPGA_lite/18.1/quartus/linux64/blaster_6810.hex --index-chain 1 /home/user/fpga/DE10_Standard_Computer.rbf
3. Next we used a slightly modified version of OpenOCD's altera_fpgasoc.cfg (the jtag newtap commands needed to be reversed) to run OpenOCD using test.cfg (attached): openocd -f "/home/user/fpga/openocd_test.cfg" -d2
4. We were then able to connect to the board with 'telnet localhost 4444' and run some basic test commands (halt, checked registers, etc.)
5. We added a .tcl file (prepared by my co-worker, AI-assisted, attached) to prepare CPU 0 and load /opt/intelFPGA_lite/18.1/University_Program/Monitor_Program/arm_tools/u-boot-spl.de10-standard.srec , which transfers successfully every time we've tested:
> de10_run_preloader
de10: loading preloader u-boot-spl.de10-standard.srec into on-chip RAM
34260 bytes written at address 0xffff0000
3796 bytes written at address 0xffff85d8
downloaded 38056 bytes in 1.564903s (23.748 KiB/s)> de10_run_preloader
de10: loading preloader u-boot-spl.de10-standard.srec into on-chip RAM
34260 bytes written at address 0xffff0000
3796 bytes written at address 0xffff85d8
downloaded 38056 bytes in 1.568080s (23.700 KiB/s)> de10_run_preloader
de10: loading preloader u-boot-spl.de10-standard.srec into on-chip RAM
34260 bytes written at address 0xffff0000
3796 bytes written at address 0xffff85d8
downloaded 38056 bytes in 1.562973s (23.778 KiB/s)6. We then added breakpoints and an attempt to run the preloader into the .tcl file with:
bp 0xffff14f0 4 hw
resume 0xffff0000
set rc [catch { wait_halt 15000 } err]
rbp 0xffff14f0Attempting to run the preloader succeeds about half the time with:
> de10_run_preloader
de10: loading preloader u-boot-spl.de10-standard.srec into on-chip RAM
target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0x200001d3 pc: 0xffff14f0
MMU: disabled, D-Cache: disabled, I-Cache: enabled
de10: preloader finished (DDR3 initialized)The other half of the time it fails (using the hardware HPS reset button between tests) with:
de10: loading preloader u-boot-spl.de10-standard.srec into on-chip RAM
timed out while waiting for target haltedAfter adding a check for how far the preloader gets on resume shows semi-consistent failure:
Failure 1 - Error: de10: preloader did not reach 0xffff14f0 (PC=0x00002fa8)
Falure 2 - Error: de10: preloader did not reach 0xffff14f0 (PC=0x00002fa4)
Failure 3 - Error: de10: preloader did not reach 0xffff14f0 (PC=0x00002fa8)
Failure 4 - Error: de10: preloader did not reach 0xffff14f0 (PC=0x00002fa8)Let us know if we can provide any further details. thanks again
- tehjingy_Altera
Regular Contributor
Hi
Thank you for the additional testing, that was very useful.
Your results indicate that the stock preloader downloads into on-chip RAM reliably, but could not run till DDR initialization..
On the failing board could you try capturing the HPS UART output?
Optionally could you try repeating the test with a full board power cycle instead the reset?
- fpga-user
New Contributor
Hello,
Thank you for the reply. We hooked up the miniUSB HPS UART and monitored it with: picocom -b 115200 --logfile /home/user/fpga/de10-serial.log /dev/ttyUSB0
1. We started running the quartus_hps test ('quartus_hps --cable="$FPGADEV" -o GDBSERVER --gdbport0=3212 --preloader=/opt/intelFPGA_lite/18.1/University_Program/Monitor_Program/arm_tools/u-boot-spl.de10-standard.srec --preloaderaddr=0xffff14f0'), power cycling the board, then running the OpenOCD test. When the preloader runs successfully through either program, HPS UART output shows:
U-Boot SPL 2013.01.01 (Aug 23 2017 - 12:18:56)
BOARD : Altera SOCFPGA Cyclone V Board
CLOCK: EOSC1 clock 25000 KHz
CLOCK: EOSC2 clock 25000 KHz
CLOCK: F2S_SDR_REF clock 0 KHz
CLOCK: F2S_PER_REF clock 0 KHz
CLOCK: MPU clock 925 MHz
CLOCK: DDR clock 400 MHz
CLOCK: UART clock 100000 KHz
CLOCK: MMC clock 50000 KHz
CLOCK: QSPI clock 370000 KHz
RESET: COLD
SDRAM: Initializing MMR registers
SDRAM: Calibrating PHY
SEQ.C: Preparing to start memory calibration
SEQ.C: CALIBRATION PASSED
SDRAM: 1024 MiB2. After power cycling the board a number of times we eventually ran into the initial preloader issue described in the first post:
Info: Command: quartus_hps --cable="DE-SoC [1-10]" -o GDBSERVER --gdbport0=3212 --preloader=/opt/intelFPGA_lite/18.1/University_Program/Monitor_Program/arm_tools/u-boot-spl.de10-standard.srec --preloaderaddr=0xffff14f0
Current hardware is: DE-SoC [1-10]
Successfully change hardware frequency to 16Mhz
Found HPS at device 1
Double check JTAG chain
HPS Device IDCODE: 0x4BA00477
AHB Port is located at port 0
APB Port is located at port 1
Double check device identification ...
>>CPU0 halted at 0x2fa8.
>>Resetting HPS.
>>Downloading preloader.......
>>Program loaded. PC set to program entry (0xFFFF0000)
>>Setting vector base address register to: 0xffff0000
>>Running preloader.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................When running preloader HPS UART output endlessly prints:
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
IRQ triggered: Corrected OCRAM ECC
[continues until quartus_hps process is killed]3. When we see this issue, power cycle the board, and run the OpenOCD 'de10_run_preloader' test, it fails with:
fpgasoc.cpu.0: MPIDR level2 0, cluster 0, core 0, multi core, no SMT
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x600001d3 pc: 0x00002fa8
MMU: disabled, D-Cache: disabled, I-Cache: enabled
de10: loading preloader u-boot-spl.de10-standard.srec into on-chip RAM
timed out while waiting for target halted
target halted in Thumb state due to debug-request, current mode: IRQ
cpsr: 0x400001f2 pc: 0xffff5c94
MMU: disabled, D-Cache: disabled, I-Cache: enabled
/home/user/fpga/test.tcl:60: Error: de10: preloader did not reach 0xffff14f0 (PC=0xffff5c94).
in procedure 'de10_run_preloader'
at file "/home/user/fpga/openocde_test.cfg", line 60(Error message is from OpenOCD tcl file:
proc de10_hex {v} { return [format 0x%08x $v] }
proc de10_pc {} {
regexp {0x[0-9a-fA-F]+} [reg pc] pc
return [expr {$pc}]
}
[...]
bp 0xffff14f0 4 hw
resume 0xffff0000
set rc [catch { wait_halt 15000 } err]
rbp 0xffff14f0if { $rc } {
halt 1000
error "de10: preloader did not reach [de10_hex $DE10_PRELOADER_DONE]\
(PC=[de10_hex [de10_pc]])."
}Two side notes:
A) This issue shows up intermittently on many of our 14 DE10-Standard boards. The problem is it is so intermittent we haven't been able to log whether it happens on every single board or just some of them.
B) It seems that the OpenOCD errors in the previous post - Error: de10: preloader did not reach 0xffff14f0 (PC=0x00002fa8) - may be a separate (unrelated?) issue that shows up after using the HPS reset buttons between OpenOCD tests. We didn't see this issue show up again when power cycling between OpenOCD tests.- tehjingy_Altera
Regular Contributor
Hi,
Thank you for the UART capture.
From the UART Capture it could be two possibility, the tool JTAG-loaded SPL causes the ECC IRQ or the OCRAM itself is having an issue.
Could you try out the following:
When a board is in the failing state (after a failed JTAG preloader run), please try a normal SD-card boot of that same board (power cycle, boot from SD with a known-good image).
- If SD boot is solid while JTAG-loaded SPL hits the ECC IRQ storm, the problem is likely tied to the JTAG load / debug run path (OCRAM contents vs ECC state when the SPL enables OCRAM ECC).
- If SD boot also hits OCRAM ECC noise or hangs, that points more toward board/HPS OCRAM behavior on that unit.