Altera_Forum
Honored Contributor
8 years agoSynchronize HW and SW in the NIOS II development flow - how to proceed ?
Hello,
Does exist a straightforward approach on the synchronization of the two parts of a NIOS II project - hw & sw. Here is my case:- For my de1 soc terasic (cyclon v) board I've developed in qsys a project that features nios ii, some peripherals and sdram memory
- After adding top-level wrapper for qsys system in quartus, I downloaded hw part in my board.
- Then I've created sw part (generated sbp based on .sopcinfo + application)
- After compiling sw application I've tried to run it in the board (right-click application --> "Run As" --> "NIOS II hardware")
- Unfortunately this attempt was unsuccessful (please, see my previous post - "problem with downloading of a nios ii program")
- Having no clear idea how to workaround such issue, I've decided to approach this project to an another, working project
- The major difference between 2 projects is the memory type - in "working" project - on-chip memory, in "nonworking"- sdram.
- So, I replaced in "nonworking" project sdram with onchip memory.
- After compiling and downloading the hw part, I returned to sw development ... and didn't find any option (!!!), allowing to "refresh" bsp in order to take into account the new .sopcinfo.
- Attempts to compile the application resulted in error messages, containing allusions on sdram, that is already removed from project !
- After some exploration I've discovered that in bsp editor window one can remove the link to non-existing sdram and replace it with onchip-memory.
- Then I've tried to build application with modified bsp (as I believed)
- The result of this building you can see from the screenshot below
- Moreover, I checked the content of the system.h file - there are still the definitions, related to sdram ...