Hi, Im new to all the Mikroe environment and to Necto studio and I am starting to play around with a Clicker 2 for PIC18FK. I have a Thermo 4 click and I am trying to visualize the temperature measured on the integrated UAS UART, but I am failing to get any messages on the serial terminal. I have folowed the example code on the API documentation and the code looks like is uploading correctly (I uploaded the same code enablind one of the LEDs and is working) but still no messages on the terminal.
The following code is what I am using.
Code: Select all
static log_t logger;
log_cfg_t log_cfg;
LOG_MAP_USB_UART(log_cfg);
log_init(&logger, &log_cfg);
log_info(&logger, "---- Application Init ----");
I also found that the LOG_MAP_USB_UART() function is not doing anything. If I follow to the definition of the function this is what I find.
Code: Select all
/*!
* \brief LOG MAP to the USB UART configuration
* \note Build compatibility only, not functional.
*/
#define LOG_MAP_USB_UART(cfg) cfg.level = LOG_LEVEL_DEBUG;
I would thank any clarification on what should I do to make it work.