SystemView RTT interface via serial missing UART hardware interface

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • SystemView RTT interface via serial missing UART hardware interface

      Trying to get SystemView to work using RTT and UART.

      Using MPLAB with Harmony on ATSAMD21(Cortex-M0+)/ATSAME54(Cortex-M4F) and uCOS-III RTOS. Have added the latest SystemView source from SEGGER
      Trying to replace Micrium uC-Probe with SystemView to monitor Tasks and other RTOS resources and blocking.

      Cannot find documentation on how to link SystemView RTT to the UART hardware. Any ideas where to look.

      I see that SEGGER_RTT.c has :

      SEGGER_RTT_WriteDownBufferNoLock()
      I presume this can be called from my USART Receive IRQ handler to store data received from the host.

      SEGGER_RTT_ReadUpBufferNoLock:
      I presume I can call this from my USART Transmit IRQ handler to transmit the next byte of data from the ring buffer to the host, or disable DRE interrupts if no data is available.

      BUT where is the link to transfer the first transmit byte to the UART and enable the TX(DRE) interrupts?
      I need to allow SEGGER_RTT to call a hardware routine that sends the first data byte to the UART and sets the DRE interrupts for subsequent data to be sent.
      :/
    • Hello,

      Thank you for your inquiry.
      An example UART implementation can be found here:
      wiki.segger.com/Use_SystemView_UART_Recorder

      Best regards,
      Nino
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.