Hello,
I am trying J-Link RTT on Nuclei N101 core. Now I can successfully get the RTT message from function SEGGER_RTT_printf by "Debug Terminal" in emStudio. But if I use J-Link RTT viewer, I can't see any messages at all. The RTT viewer works well with another MCU STM32F103.
Here is the output from RTT viewer log, there is nothing from the ternimal window.
==================
LOG: J-Link RTT Viewer V6.80c: Logging started.
LOG: Terminal 0 added.
LOG: Connecting to J-Link via USB...
LOG: Device "N101" selected.
LOG: ConfigTargetSettings() start
LOG: ConfigTargetSettings() end
LOG: TotalIRLen = 5, IRPrint = 0x01
LOG: JTAG chain detection found 1 devices:
LOG: #0 Id: 0x11010A6D, IRLen: 05, Unknown device
LOG: Debug architecture:
LOG: RISC-V debug: 0.13
LOG: AddrBits: 7
LOG: DataBits: 32
LOG: IdleClks: 7
LOG: Memory access:
LOG: Via system bus: No
LOG: Via ProgBuf: Yes (2 ProgBuf entries)
LOG: DataBuf: 4 entries
LOG: autoexec[0] implemented: Yes
LOG: Detected: RV32 core
LOG: CSR access via abs. commands: No
LOG: Temp. halted CPU for NumHWBP detection
LOG: HW instruction/data BPs: 2
LOG: Support set/clr BPs while running: No
LOG: HW data BPs trigger before execution of inst
LOG: RTT Viewer connected.
LOG: RTT is running in stop mode: wiki.segger.com/RTT#Stop_mode
==================
It is running on stop mode, it should work. I had suspect the problem is related to emStudio. But after I shutdown the emStudio, I still got nothing. I am sure the program is running, as I can get some messages from the UART port.
BR
/Li
I am trying J-Link RTT on Nuclei N101 core. Now I can successfully get the RTT message from function SEGGER_RTT_printf by "Debug Terminal" in emStudio. But if I use J-Link RTT viewer, I can't see any messages at all. The RTT viewer works well with another MCU STM32F103.
Here is the output from RTT viewer log, there is nothing from the ternimal window.
==================
LOG: J-Link RTT Viewer V6.80c: Logging started.
LOG: Terminal 0 added.
LOG: Connecting to J-Link via USB...
LOG: Device "N101" selected.
LOG: ConfigTargetSettings() start
LOG: ConfigTargetSettings() end
LOG: TotalIRLen = 5, IRPrint = 0x01
LOG: JTAG chain detection found 1 devices:
LOG: #0 Id: 0x11010A6D, IRLen: 05, Unknown device
LOG: Debug architecture:
LOG: RISC-V debug: 0.13
LOG: AddrBits: 7
LOG: DataBits: 32
LOG: IdleClks: 7
LOG: Memory access:
LOG: Via system bus: No
LOG: Via ProgBuf: Yes (2 ProgBuf entries)
LOG: DataBuf: 4 entries
LOG: autoexec[0] implemented: Yes
LOG: Detected: RV32 core
LOG: CSR access via abs. commands: No
LOG: Temp. halted CPU for NumHWBP detection
LOG: HW instruction/data BPs: 2
LOG: Support set/clr BPs while running: No
LOG: HW data BPs trigger before execution of inst
LOG: RTT Viewer connected.
LOG: RTT is running in stop mode: wiki.segger.com/RTT#Stop_mode
==================
It is running on stop mode, it should work. I had suspect the problem is related to emStudio. But after I shutdown the emStudio, I still got nothing. I am sure the program is running, as I can get some messages from the UART port.
BR
/Li