Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

gdb and daig_printf()

Is it possible to use jtag_uart with gdb, i.e. I want to use gdb via nios2-gdb-server --tcpport=2343 and still use diag_printf over the same jtag port. It looks like it should be possible in the config by setting CYGSEM_HAL_DIAG_MANGLER to gdb and CYGDBG_HAL_DIAG_TO_DEBUG_CHAN to True.

Whatever combination I use fails to work, I might be something to do with my app not starting when I use diag_printf() until I run nios2-terminal

Help!

Thanks Robert.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    simply start two shells, on one start nios2-gdb-server and on the other start nios2-terminal. The jtag_uart is indeed blocking: if you don't have the nios2-terminal running, the application blocks in the diag_printf call.

    Regards,

    Andreas.