- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
Is there anyone who can tell me what's the function of this file,and where to use it. Thanks.Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That file is used by the preloader to initialize and calibrate the SDRAM controller inside the HPS. It's automatically generated based on the settings you make in the bsp-editor tool as well as hardware settings you make in the HPS component in Qsys. In other words it's used before Uboot or other 3rd stage bootstrap code is run so that the SDRAM will be functional by the time the 3rd stage is reached.
If you are familiar with the other memory controllers for the FPGA they are configured by the IP instantiation and are self calibrating. This is not the case with the HPS and as a result software performs these duties instead of dedicated hardware.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much.
Is this file will be called automatically ? and when compile this file and map to which address?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you build the 2nd stage bootloader which I have been calling the preloader, this file is managed automatically. So there shouldn't be any reason for you attempt to manage the file yourself since the tools generate it and it gets compiled into the rest of the preloader code when you run make on the output from the bsp-editor tool. You should also never attempt to call the code contained in that file from your own user code, it will affect the characteristics of the memory temporarily so you should let this happen only at boot time (automatically).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your help.

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