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

GCC compile PWM problem

I'm following the tutorial Development with GCC and Eclipse, but have problem when use GCC to compile project that use PWM library.

I found that when compile the code with GNU "make" command, whenever I call app_pwm_disable(), the PWM stops. If call app_pwm_uninit() after app_pwm_disable(), PWM start to work, but it will break the BLE connection. Exactly the same code works fine when I build it with Keil, so I guess it's something related with GCC compiler. The code and makefile I'm using is the ble characteristic tutorial, and I use SDK 11, PCA10028.

Thanks for any help!

Related