Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHPS SPI remapped to FPGA cause system hangup
Hi all!
Up untill now I've successfully used SPI master remapped to FPGA pins with CS pin via PIO. In my u-boot.scr I had such coded:
fatload mmc 0:2 $fpgadata UniDAS.rbf;
fpga load 0 $fpgadata $filesize
mw $axibridge ${axibridge_handoff};
mw $l3remap ${l3remap_handoff}
Now I'm trying to enable FPGA to HPS SDRAM bridge so I change code to this:
fatload mmc 0:2 $fpgadata UniDAS.rbf;
fpga load 0 $fpgadata $filesize
run bridge_enable_handoff;
With system console and JTAG-to-AvalonMM I verified that bridge is working fine. But! Now when I try to send data over SPI (via Linux spidev) Linux hangs and reboot. U-Boot and Preloader are both updated to match firmware. Connections: https://alteraforum.com/forum/attachment.php?attachmentid=15439&stc=1 Maybe any one has clues what it may be?2 Replies
- Altera_Forum
Honored Contributor
Is it only I or screenshot is broken? Anyway - new link: https://imgur.com/a/9mfmedw
- Altera_Forum
Honored Contributor
I've replaced u-boot.scr code with this:
and verify that JTAG master can read system memory and SPI do not hang the system. But I do not know why this is happening.fatload mmc 0:2 $fpgadata UniDAS.rbf; fpga load 0 $fpgadata $filesize mw $axibridge ${axibridge_handoff}; mw $l3remap ${l3remap_handoff} mw $fpga2sdram ${fpga2sdram_handoff};