OS in development environment :Windows10
HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals
CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD
builder :SEGGER Embedded Studio for ARM Release 3.34a Build 2018022300.35192 Windows x64
2014-2018 SEGGER Microcontroller GmbH & Co. KG
1997-2018 Rowley Associates Ltd.
GCC/BINUTILS: Built using the GNU ARM Embedded Toolchain version 6-2017-q2-update source distribution
Clang/LLVM: Built using the version 5.0.0 source distribution
Soft Ver:nRF5_SDK_15.3.0_59ac345
"ERROR8" occurs immediately after executing "app_pwm_init" in the PWM initial setting function.
-----< Source code >------------------------------
void pwm_init(void)
{
ret_code_t err_code;
/*< 2-channel PWM, 1kHz, output on DK LED pins. >*/
app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_2CH(PWM_CYCLE, BSP_LED_0, BSP_LED_1);
/*< Switch the polarity of the channel. >*/
pwm1_cfg.pin_polarity[0] = APP_PWM_POLARITY_ACTIVE_HIGH;
pwm1_cfg.pin_polarity[1] = APP_PWM_POLARITY_ACTIVE_HIGH;
/* Initialize and enable PWM. */
err_code = app_pwm_init(&PWM1,&pwm1_cfg,pwm_ready_callback);
APP_ERROR_CHECK(err_code); <------------------------------< Error occurrence point >
app_pwm_disable(&PWM1);
pwm_cha0_duty = 0; /* PWM Channel 1 duty */
pwm_cha1_duty = 0; /* PWM Channel 0 duty */
}
---------------------------------------------------
Please tell me what to do