- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
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):
hps_sdram_p0_parameters.tcl
hps_sdram_p0_pin_assignments.tcl
Regards
Jingyang, Teh
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi snehal_p
Could you share the steps that was used to compile the application file?
What are the environment details run on the DE1SOC board?
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jingyang,
Thanks for your response, following is the link of steps for compilation
https://www.rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide
Please let me know if more information is needed
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi snehal_p
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?
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jingyang,
I tried running the application on non customized image ,it works.
Also with customized image it gave output once please find attached screenshot , but again when I try executing it gives error.
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Any update on this case?
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Snehal
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?
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jingyang,
The application that was run was the demonstration project led switch application. Customization I changed the linux version.
PFA screenshot of the error received when I execute the application file.
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi snehal_p
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?
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jingyang,
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.
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi snehal_p
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
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jingyang,
PFA uboot.scr
I'm new to using SOC and linux, can you please help me with steps to write to hps memory region
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi snehal_p
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
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jingyang,
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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Snehal
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.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jingyang,
"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.
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI Snehal_p
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.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jingyang,
Thanks, application file does not run each time we program it executed few times.
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Snehal_p
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.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Snehal_p
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"
Regards
Jingyang,Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jingyang,
PFA zImage it is the customized image with linux kernel 4.14.1, using devmem gives error please find attached screenshot for the same
Thanks,
snehal_p
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page