Forum Discussion
hsyn
New Contributor
3 years agoCYCLONE V HPS SDRAM - Enable with Hardware Diagnostic Option in bsp-editor
Hello, I want to perform a DDR RAM test with u-boot for my PCB that has a CYCLONE V. My PCB has 256MiB memory. When I select HARDWARE_DIAGNOSTIC in bsp-editor.exe for this purpose, I receive a warn...
hsyn
New Contributor
3 years agoIn the "Cyclone V Hard Processor System Technical Reference Manual" PDF, there is a sample code provided for testing SDRAM with the preloader.
I have attached the image below.
When I executed this code, I encountered a verification error. Upon inspecting the code, it seems that they might have incorrectly incremented the "cnt" value in the "read" and "write" loops.
It worked correctly when I modified the "for" loop in the "read" section to be "cnt++".
Is it normal to have errors in the code provided in the PDF, or am I misinterpreting certain parts of it?