Forum Discussion
I am getting this mistake message "project elf section bss is not within region onchip_memory2_0'", could you help debug it plz
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
- AnandRaj_S_Intel6 years ago
Regular Contributor
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
- rkaib6 years ago
Occasional Contributor
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
- AnandRaj_S_Intel6 years ago
Regular Contributor
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
- rkaib6 years ago
Occasional Contributor
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
- AnandRaj_S_Intel6 years ago
Regular Contributor
Have you solved "project elf section bss is not within region onchip_memory2_0"???
- rkaib6 years ago
Occasional Contributor
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
- AnandRaj_S_Intel6 years ago
Regular Contributor
Okay, thanks for the information.
Let me check and come back.
- AnandRaj_S_Intel6 years ago
Regular Contributor
Hi any update?Have solved the problem
- rkaib6 years ago
Occasional Contributor
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
- rkaib6 years ago
Occasional Contributor
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 ;