Question one: "Fix niosii. project folder directory path change "in the process, according to the niosii the fantasy drifting-v2.0.pdf The appendix of the book 20.2 Four steps to fix niosii project folder directory path change "The way to solve problems, there are always some small problems, for example, there is a problem" xxx.sopcinfo could not being found. "Finally, you can delete the project and rebuild project , copy source code. Although finally able to solve the path problem, but spend too much energy, countless times to delete project under the original project, countless times of their own reconstruction, although can also solve the problem, but the process is cumbersome, always doubt whether you have to lose which source files.
WORKAROUND: In accordance with the niosii the fantasy drifting-v2.0.pdf The method in this book is as it should be. One of the things I did wrong is that in the third step of "re-Generate BSP Project" This process, did not find the text mentioned in the Generate BSP This option, the blame himself, the ultimate solution is in pwm_1_bsp Right-click to select the Nios ii--generate BSP. Before always thought in pwm_1 right button, did not find, so took a detour choose Nios ii--bsp Editor settings.bsp file, wasted countless energy.
Issue two: Error "Connected system ID hash not found on target at expected base address" . And if you ignore ID detection in "Run configurations" to continue the run, the following dialog box pops up:
Workaround: See blog: http://www.cnblogs.com/ic90/p/3608115.html .
This error is summarized in the article:
1 ) Unused pin without setting, you may receive interference from external signals; set the unused pin as input tri-stated with weak pull-up.
2 ) system clock signal is not constrained, or SDRAM the clock of the storage device is not configured correctly;
3 ) The system reset signal is not connected with an external reset switch;
4 ) some pins may error pins assigned; Check design pins individually the distribution.
5 ) SOPC system ID not added components.
The reasons for the author's error are given in the article: " go through this process and find the PIN assignment error of the input clock signal! After the fix, recompile the project. Regenerate the BSP file in Nios Eclipse , and then compileall. Run again, ID detection problem resolved "
by the author of that blog post, his mistake appeared in the 4th article. I follow the above said, also follow this process went again, in the check pin assignment, found the reset signal pin assigned to the SW1, so found that this is a toggle switch, Lenovo to the blog listed in the 5 to solve the problem. Guess the problem may appear on the reset switch, it should be explained that this is a switch, not a button. Why do I stress here: The reset signal is active low, and when the reset signal is at high level, there is no problem. This error occurs when the reset signal is at low power. Therefore, it is estimated that the switch is at low level, so the fluctuation switch, the level should be high level. Run again, ID detection problem resolved.
Spent several days of time, the problem is finally solved, hard is worth it!
Two issues that occur when using eclipse: "Fix niosii project folder directory path change" and "Connected system ID hash not found on target at expected base address"