ALTERA function fails after execution at C program
Hello,
I'm using DE1-SoC with lubuntu 16.04.
I'm trying to make a C program to access the HPS resources such as LED, GPIO, etc.
"""
I was using the kernel from Terasic, and the C program with altera functions (e.g. alt_write_word) to access the HPS resources could be successfully executed.
However, from someday, the kernel was corrupted by an unknown reason and the kernel from Terasic was also not working. (The U-boot failed after "Starting Kernel...")
So I replaced zImage file from Terasic resource to ghrd provided by releases.rocketboards.org and I could boot the FPGA successfully.
(rbf file was not replaced)
"""
However, the terminal through the serial communication freezes after executing C program with altera functions.
That is, the terminal does not show any further logs and does not respond to any commands such as CTRL-C when I run the program with altera functions.
I've checked that the program without altera functions (such as, Hello World!) can be successfully executed.
Although the terminal freezes, I can still see the RXD LED blinking if I type the keyboard (i.e. sending data to FPGA HPS)
Is there any idea to debug this kind of error?
Hello서박사,
I’m glad that your problem has been fixed.
So I will close this thread if no further questions from you.
Best regards,
Yoshiaki Saito