qwitza
Occasional Contributor
4 months agoFPGA Cyclone V cold boot -> crash / Soft reset ok => please help!
Hello,
we are experiencing an issue with some of our boards that use the Cyclone V device.
On certain boards, the system crashes during a cold boot (first boot).
However, after performing a soft reset, everything seems to work as expected.
I can reliably reproduce the crash by booting into U-Boot and entering the following commands:
fpgaload=ext4load mmc 0:2 ${loadaddr} ${fpgafile}; run checkfpgafw; checkfpgafw=if test ${filesize} -le 0; then echo cant load fpga firmare $fpgafile;else run fpgaloadandenable;fi; fpgaloadandenable=fpga load 0 ${loadaddr} ${filesize};echo firmware $fpgafile written to fpga;bridge enable; echo bridges enabled; mw 0xFFC25080 0x0 run fpgaload mw 0xFFC2505C 0xA mw 0xFFC25080 0xFFFF mw 0xff200000 w
After an reboot the u-boot cmds are working, without an issue.
The issue is also in linux at the first cold boot, after accessing the bridge linux crash.
After the first cold boot into linux:
./devmem2 0xff200000 w /dev/mem opened.
After an soft reset
./devmem2 0xff200000 w /dev/mem opened. Memory mapped at address 0xb6f17000. Value at address 0xFF200000 (0xb6f17000): 0x62656320
Can please someone help me, or assist howto debug?
thanks a lot