- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Attached an example of DE-2 try to go through it and implement for d2-115.
Also look into example below for d2-115 without on chip ram which can be modified.
https://www.digikey.com/eewiki/pages/viewpage.action?pageId=15925278
Regards
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you AnandRs, I have looked into your document and example, but I would like something with nios 2 because I am using onchip memory that I Intialized with an image in .hex but It is not read properly from nios2 before getting displayed in the vga monitor. thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting this mistake message "project elf section bss is not within region onchip_memory2_0'", could you help debug it plz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @rkaib ,
Memory overflow issue.
Increase your onchip ram(onchip_memory2_0) size in QSYS System design.
Which will solve the problem.
Let me know if this has helped resolve the issue you are facing or if you need any further assistance.
Regards
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks Anand, I have tried to increase the size but still the same problem.
could plz have quick look on it attached.
maybe I am using too much of component because I used an example from university program. I am just looking for reading the image desert.hex from the onchip memory then display in vga.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
- Increase your onchip ram(onchip_memory2_0) size in QSYS System design.
- Clean the eclipse project -> generate the BSP -> build the project and check
Please upload project, Image are not giving any clue.
Regards
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Anand,
I have done the 2 steps of your last post but nothing changed.
attached you can find the project, I hope you can show me how to fix it.
and just remember, all I need is to read the image (here desert.hex) from the onchip memory
then display it on VGA.
the part I am stuck in is reading correctly the image from the memory as different values seem to pop up.
thanks Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you solved "project elf section bss is not within region onchip_memory2_0"???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
not yet. in the project Ithat I sent you they use an SDRAM, I do not get that message but the data read are nor correct. but if I remove the sdram and use just the on chip memory or even with the sdram and I point in the on chip memory in the link script I get that message again.
the best option for me is to use just the on chip memory, but if it is mandatory I can look into using the sdram.
hope it is clear for you now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay, thanks for the information.
Let me check and come back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have used onchip ram in your project, Please check attached.
Create your own eclipse project and check.
Note : Not tested
Let me know if this has helped resolve the issue you are facing or if you need any further assistance.
Regards
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi any update?Have solved the problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi AnandRS,
thanks for all this effort, sorry for not keeping you updated,
I will try to test it and come back to you as soon as I can,
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much AnandRS for your last post, It definetely helped me a great deal.
I have tested your code and It worked fine but with some minor issues:
1. I changed another .hex image (maube mine was not good),
2.It works exclusively with DE2-115-Computer_time_limited.sof (and not with DE2-115-Computer.sof ),
Neverthless I can manage now.
another problem if you do not mind is in the qualirt of the displayed image in VGA which is bad,
I am using :
alt_up_video_dma_dev* video;
video=alt_up_video_dma_dev("/dev/VGA_Subsystem_VGA_Pixel_DMA");
read RGB image from memory then putting them into img1,img2,img3 respectively .
loop:
alt_up_video_dma_draw(video,img1[i][j]*65536+img2[i][j]*255+img3[i][j]*65536,i,j,1):
end loop
any clue?
thanks in advance AnandRS ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
- Check hardware connection and monitor.
- Check timing constrain.
- Check how image is read from memory.
- Check IP configuration.
- Use signal-tap for debugging.
The code looks good.
We are diverting from actual question Please open new case for new question, which will help other user during forum search.
Thank you for contacting the Support team. We have resolved primary issue and closed your ticket.
Regards
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok, I will.
thank you very much Anand, It has been very helpful
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok, thank you very much Anand, I will
best regards.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page