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

error[li005] while adding PWM to BLE project

hi, im new to to work on nrf52 ,

i took the BLE example and complied it - it works. i tried adding PWM to the project from examples. i also added the app_pwm files from the C/C++ compiler Preproccessor.

when i compile i get errors that there is no definition but when i look for the definition it opens the app_pwm.c file and marks it.

what am i doing wrong?

Parents
  • thanks Edvin.

    i found the PWM_ENABLED and activated it with "1", but now im getting many more errors that have the same problem

    any suggestions ?

  • They are all similar issues. I see that many of them refer to the nrf timer driver.

    It means that you have to do the same for the variables that the linker can't find. First make sure that you have all the .c and .h files that it requires. If you still get the error, check if there is an #ifdef near the top of the .c files. If there is, you should add it in your sdk_config.h file.

    If you are unsure in what file the variable or function it is missing is decleared, check in the PWM example, as it should have them included already.

    As I mentioned in the previous reply, note that some of the defines may not be included in sdk_config.h. If that is the case, copy paste it from the PWM project, or the ble_app_template project.

Reply
  • They are all similar issues. I see that many of them refer to the nrf timer driver.

    It means that you have to do the same for the variables that the linker can't find. First make sure that you have all the .c and .h files that it requires. If you still get the error, check if there is an #ifdef near the top of the .c files. If there is, you should add it in your sdk_config.h file.

    If you are unsure in what file the variable or function it is missing is decleared, check in the PWM example, as it should have them included already.

    As I mentioned in the previous reply, note that some of the defines may not be included in sdk_config.h. If that is the case, copy paste it from the PWM project, or the ble_app_template project.

Children
No Data
Related