Polidea/cmake-nRF5x

RTT viewer is not printing

td43 opened this issue · 0 comments

td43 commented

Hello,

I am trying to use this framework and all is good, build files, flash, etc. Tho only problem is that I am trying to print something with RTT of Jlink and I can't see the output print. could you help me with this?

this is my src file:

#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
#include "bsp.h"
#include "nrf.h"
#include "system_nrf52.h"
#include "nrf_delay.h"
#include "sdk_config.h"

#define ENABLE_SWD 1

static const uint8_t leds_list[LEDS_NUMBER] = { 9, 7, LED_3, LED_4 };

int main(void)
{
    /* Configure LED-pins as outputs. */
    printf("yeah nene\n");
    LEDS_CONFIGURE(LEDS_MASK);
    while (true)
    {
        for (int i = 0; i < LEDS_NUMBER; i++)
        {
            LEDS_INVERT(1 << leds_list[i]);
            printf("testing print CMAKE\n");
            nrf_delay_ms(500);
        }
    }
}