Hi,
I am new to MCUs and I am trying to send information from NRF51 via UART (not BLE UART) to Putty. No matter what I try I can't seem to print anything on Putty. I started working with the template file under peripherals. The file produces no errors on keil.
I am using NRF_LOG_PRINTF statement. Here is the code:
/* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
*/
/** @file
* @brief Example template project.
* @defgroup nrf_templates_example Example Template
*
*/
#include "RTE_Components.h" // Component selection
#include <stdbool.h>
#include <stdint.h>
#include "nrf_adc.h"
#include "nrf.h"
#include "nrf_gpio.h"
#include "nordic_common.h"
#include "nrf_delay.h"
#include "app_error.h"
#include "app_timer.h"
#include "app_util_platform.h"
#include "boards.h"
#include "bsp.h"
#include "nrf_drv_adc.h"
#include "nrf_drv_config.h"
#include "nrf_log.h"
#include "nrf_drv_uart.h"
#include "nrf_drv_ppi.h"
#include "nrf_drv_timer.h"
//Main function
int main(void)
{
uint32_t err_code;
err_code = NRF_LOG_INIT();
if (err_code != NRF_SUCCESS)
{
// Module initialization failed. Take corrective action.
}
NRF_LOG_PRINTF("Hello World \n");
}
/** @} */