This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

adding pwm to ble_template

Hello everyone! I'm very shy to ask probably a stupid question, but... I'm trying get abitity to change pwm signal via ble. I've created service, characteristic, then I try to add some code from pwm_library example but Keil doesn't like my idea to add APP_PWM_INSTANCE(PWM1, 2) the error is ......\main.c(105): error: #20: identifier "TIMER0_ENABLED" is undefined I understand that timer I'm gonna use for pwm (TIMER 1 I think) is disabled. I've tried change in sdk_config.h

define TIMER1_ENABLED 0 to define TIMER1_ENABLED 1 but nothing change.

image description

Parents Reply
  • Thank you. It's worked now. but I have such errors:

    ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_pwm_channel_duty_set (referred from main.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_pwm_enable (referred from main.o). ._build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol app_pwm_init (referred from main.o).strong text

    app_pwm.c added to nrf_library

Children
Related