Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Undefined symbol error when adding Simple_timer to uart example in Keil

When I add a PWM or simple timer to a uart example I get the error in Keil.

Simple timer: I added app_simple_timer.c to the library, I added the #include "app_simple_timer.h" and I added the path to the Project Options.

My code is very simple:

// Initialize timer
   uint32_t err_code1 = app_simple_timer_init();
    APP_ERROR_CHECK(err_code1);
	// start timer for PWM 
   err_code = app_simple_timer_start(APP_SIMPLE_TIMER_MODE_REPEATED, PWM_timer_handler, 50000, NULL);
    APP_ERROR_CHECK(err_code);

I have the same problem with the PWM_Library.

Thanks

Parents Reply
  • Hi,

    When possible, it would be really useful to have a tutorial for sdk_config. It can be quite confusing to realize what is and is not present on each version of the file, and copying and pasting defines between files feels...wrong.

    Also, something even better than a tutorial would be a wizard where one chooses what to use, and the wizard would generate the sdk_config file with all the defines.

Children
Related