Forum Discussion
Altera_Forum
Honored Contributor
7 years agoAfter a lot of experimentation, I still haven't quite gotten something working.
I found an example Altera provided for my board at https://cloud.altera.com/devstore/platform/17.0.0/standard/pcie-avmm-dma-gen2x4-on-chip-and-external-memory/ When I downloaded it and opened the project with Quartus, the device name matched that of my device. I compiled successfully and found that I could write the .sof file to the board if I wanted. However, my goal is to have the cyclone v be visible to the linux machine that it is connected to through pcie. I don't really care how this happens as long as I can program it through that connection in the end. So I used the Nios II EDS terminal to create a flash file and then program the FPGA as per the instructions of Appendix pages 2 and 3 in the link you provided: https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/ug/ug_cvgt_fpga_dev_kit.pdf When I ran the last command: nios2-flash-programmer --base=0x00000000 <yourfile>_hw.flash (with my .sof file), I didn't receive any errors (the ip on the screen attached to the board changed the first digit to a 0 for some reason) The LEDs labeled PGM CONF and PGM 1 were lit. Lspci still didn't show the board at all on the Linux machine still (after a hard reboot too). However, when I tried to configure it as per the steps listed for the Board Update Portal, I would successfully upload the flash file and when I proceeded to "Press button PGM_SEL (S6) until PGM LED 1 is lit then press button PGM_CONFIG (S5) to configure the FPGA with the new image" I would see the red ERR LED light up. I'm not sure if I am missing something small or if this is closer. Thank you for your help, after all this fruitless effort I really appreciate it. A lot. Let me know if you need anything I haven't specified. Best regards, Alex