Forum Discussion
22 Replies
- Altera_Forum
Honored Contributor
hello
I tried to follow these steps, but I failed to have the results is that you can send me a tutorial or give me more information for the steps (used for command prompt and load the script. txt file in the memory for the FPGA for the niosII can operate at the execution) - Altera_Forum
Honored Contributor
Hi
--- Quote Start --- ... me more information for the steps (used for command prompt...) --- Quote End --- I would recommend that you start with that. Did you follow the steps Cris72 mentioned in his post? If so, have you used printf() to print something on the niosii console? Could you see something on the niosii console (^= pc monitor command prompt)? Did you try to use getc() and pressed a button on your keyboard? Could you determine the button by reading the value returned by getc()? Regards - Altera_Forum
Honored Contributor
yes
I tried to follow the steps of Cris72 I have not understood when add printf () or getc () more certain steps I havn't done such -in Nios application you use printf and getc year as ordinary C programs running on PC.(How to do) - Select Run ... and Target Connection option in select jtag uart have Nios II communication device (I did not find "Target Connection option") Écouter Lire phonétiquement - Altera_Forum
Honored Contributor
--- Quote Start --- -in Nios application you use printf and getc year as ordinary C programs running on PC.(How to do) --- Quote End --- Sorry, but I didn't understand the sentence. --- Quote Start --- - Select Run ... and Target Connection option in select jtag uart have Nios II communication device (I did not find "Target Connection option") --- Quote End --- Go to menu run->run configurations....->Select your NiosII Hardware Configuration->target connection. Now it depends on your NIOS IDE/EDS Version. Are you new to NIOSII development? If so I would recommend to do some beginner tutorials. There are a lot on the web which can explain the whole thing much better than I can ever do it. Regards - Altera_Forum
Honored Contributor
--- Quote Start --- [Run Configurations....->Select your NiosII Hardware Configuration->Target Connection] I have not found it in my niosIDE , in the menu Run -> Run,or Run as or Run History --- Quote Start --- [/Are you new to NIOSII development?] I implemnted a code c on nios II and I used the board fpga the problem I can not find all the commands mentioned? - Altera_Forum
Honored Contributor
Okay you're using the IDE.
You find it under run-> run... - Altera_Forum
Honored Contributor
i find it
but when application runs on Nios, the Console pane isn'it work as the pc monitor I think you must load the script.txt first can you explain me more how to load the script .txt? - Altera_Forum
Honored Contributor
--- Quote Start --- the Console pane isn'it work as the pc monitor --- Quote End --- So you don't see any output on the console??? --- Quote Start --- I think you must load the script.txt first --- Quote End --- I don't know how your code looks like.... As first step for you, I suggested to set up a simple project in which you use the console as alternative to the pc monitor. I recommended that you first try to print something on the Console using printf() and then read something back (from your PC keyboard) using getc(). This should have been your first example project for user interaction and not your final replacement of your existing code. --- Quote Start --- can you explain me more how to load the script .txt? --- Quote End --- In one of my older post, I printed a small piece of code on how to receive some raw data bytes from the PC via the jtag_uart. If you want to transfer your script.txt you could orientate to this piece of code. but you have to set up your own protocol/code for that. You have to do some work for it, but I believe it should'nt be too much. Regards - Altera_Forum
Honored Contributor
--- Quote Start --- when application runs on Nios, the Console pane isn'it work as the pc monitor --- Quote End --- This is very strange. Do you see anything at all in the console pane? If not, you probably missed some points from what I and pillemann suggested. Verify the jtag uart module is correctly connected and configured in sopc builder Verify the target connection properties in Nios IDE. Please also erase any flash memory (epcs or parallel) possibly connected to your fpga. I had a similar behaviour once and, if I remember correctly, it was due to an epcs which I had previously programmed with a different design. If nothing helps, rebuild the WHOLE system; I mean: regenerate sopc, compile Quartus project and rebuild Nios syslib and application. Best if you can create a new project from scratch. Cris - Altera_Forum
Honored Contributor
hi
--- Quote Start --- [/ suggested to set up a simple project in which you use the Console as alternative to the PC monitor] I try to excute many time a sample project with the prompt commad but nothing appears. --- Quote Start --- [/If you want to transfer your script.txt you could orientate to this piece of code.] it is diffiuculte to some work with mon code (simple project) ae you a tutorial more explain or can you intervenant the code?