- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hello.
How can I close console in C-code (finish working jtag uart)? I tired click red square button)Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Printing a special character in the end of the program should help. Too bad, I don't remember what character it is :-) I always debug using simple uart plus FT232.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I have done this before, but I also forget the character used. Just make a for loop and printf the characters 0x00 -> 0x31. I know one of these will do it. (if you take your time, it shouldn't be hard to figure out which one)
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
--- Quote Start --- I have done this before, but I also forget the character used. Just make a for loop and printf the characters 0x00 -> 0x31. I know one of these will do it. (if you take your time, it shouldn't be hard to figure out which one) --- Quote End --- I've added for loop with printf but it doesn't work.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Printing character 0x4 will send the ^D across and terminate nios2-terminal
Something like this: printf("Bye\n %c", 0x4);- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
--- Quote Start --- Printing character 0x4 will send the ^D across and terminate nios2-terminal Something like this: printf("Bye\n %c", 0x4); --- Quote End --- BadOmen, I've tried printing character 0x4 but it is not work for me. Maybe I should change JTAG UART settings in Qsys? Is any nios2-terminal terminated with 0x4 code?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
That should have worked. Try running nios2-terminal from the command line instead. You should be able to download your code and open a terminal running something like the following command line:
nios2-download -r -g <your .elf file name>; nios2-terminal- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
--- Quote Start --- That should have worked. Try running nios2-terminal from the command line instead. You should be able to download your code and open a terminal running something like the following command line: nios2-download -r -g <your .elf file name>; nios2-terminal --- Quote End --- Thank you! It works fine in command line. But why it doesn't work using GUI? GUI uses console commands, I think...
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
The new tools use system console now so I suspect the ^D functionality was omitted. nios-terminal uses the old implementation instead of system console which I suspect is the cause of the functionally differences.

- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla