I have tried out your zImage and able to run the led application successfully.
Please find the screenshot below:
Did you flash the FPGA configuration before booting into the linux environment?
As for the fitter error, you will need to run both of the TCL script below (located:soc_system\synthesis\submodules):
Could you share the steps that was used to compile the application file?
What are the environment details run on the DE1SOC board?
Thanks for your response, following is the link of steps for compilation
Please let me know if more information is needed
Sorry for the late reply as there was a public holiday.
Have you tried running the led application on the non customized image? Is it working?
What are the changes you made to the image?
Did you made any changes to the application code?If yes could you share with me the changes you made?
Did you compile the application on the user space of the non customized image?
The application that was run on the customized image was it a copied version from the non-customized image?
What are the major changes made to the customized image?
Did you tried running the steps under the "Section 11: Writing a User-space Application" in the rocketboard link
https://www.rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide to recreate the demonstration project led switch application in the new customize linux operating system?
Yes, I followed the same steps. It is still giving issues.
Also I'm facing issues in launching DS5 eclipse despite of successful installation. Can you help me with the linux commands to diagnose what the actual issue is.
Just to confirm, you did not make any changes to the uboot right?
Could you share your u-boot.scr of the custom image?
Right now I am suspecting it could be some privilege issue that causes the application to fail to read from the h2f bridge.
Could we try accessing the memory region from the linux user space manually to check the privilege in linux user space?
In the linux user space do you have any tool to read to write memory region like "memtool" "devmem"?
Could you try the following steps:
1.Write to memory address 0xFF2010008 with value 0xFF
2.Observe the led should turn on.
3.reading the memory address 0xFF2010008 it should be the value 0xFF
4.Write to memory address 0xFF2010008 with value 0x00
5.Observe the led should turn Off.
6.reading the memory address 0xFF2010008 it should be the value 0x00
You could try one of this command "memtool" or "devmem".
Try entering the command in the linux environment on your target and see if either command is available in your target environment.
Next try command below to read :
devmem 0xFF2010008 16
memtool md -l 0xFF2010008
Next try command below to write:
devmem 0xFF2010008 16 0xFF
memtool mw -l 0xFF2010008 0xFF
Thanks, I tried with the commands but it is giving invalid argument.
Also I tried executing file and every application file I have generated worked well, PFA screenshot and debug log, but when I executed it again it is giving issues.
PFA debuglog and help me analyze the issue.
Zimage used is customized .
I see that you are mounting a device "mmcblk0p1" is this an sd card or a flash device?
Are the files in the mmcblk0p1 the same through each start?
If so, this could be the reason. The files needs to be compile for each change in linux environment.
"mmcblk0p1" is a sd card.
Files in sdcard are all compiled for each change in linux environment.
As you see in the debug log that I got output for led switch program and all the executable files gave respective output, but when I reprogram FPGA or HPS or both it starts giving the unhandled fault error.
Please give me sometime while I try to reproduce the issue on my side here.
I find it weird that it could run once only each time.
Let me try out the steps from the website and try making changes to it whether i could reproduce the issue on your side.
Sorry that I do not have an update at the moment.
Please give me some more time to work on this.
I will try to give you an update by the end of Friday this week.
I managed to create a setup over here.
However I do not see the problem that you are experiencing.
The changes that you make is to the Kernel Image right?
Could you share me your zImage file that you are working on?
I tried using the latest zImage from the CycloneV GHRD and the application is able to blink on my end.
Could you test out the devmem command again?
- Try reading the sysID from the FPGA. Expected result from this is you will get a value of "0xACD51302"
- "devmem 0xff210000"
- Try turning on the led manually. Expected result all LED0:7 will turn on.
- "devmem 0xff210008 16 0xFF"
- Try turning off the led manually. Expected result all LED0:7 will turn off.
- "devmem 0xff210008 16 0x00"