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

Adding a new sdk module is too hard.

Isn't there an easier way to use the SDK?

For example, to use pwm, you need to change nrf_pwm_enable to 1 and nrfx_pwm_enable, nrfx_pwm0_enable, load_mode, step_mode, base_clock, and so on.

Not only that, you have to add the pwm driver file to the project.

Of course, if you want to use pwm only, you can import sdk_config.h of pwm sample and use it, but what if the project uses both ble and pwm at the same time?

Yesterday, I was just going to add USB charging detection function to the ble project.
It was easy to modify the main function.
All I had to do was add usbd initialization function and event handler.

But of course that doesn't work usbd alone.

I spent the whole day trying to figure out how to change the sdk_config.h file and which file to add to the project.

Tired of the build error, I eventually added all the files with the name usbd in the sdk folder to the project.

Still, there was another build error, so I added all the files with the name of clock and the name of power.

I changed sdk_config.h so much that I don't even remember what I changed.

The infocenter describes the function of the function and does not elaborate on these settings.

I think this is a little unreasonable. Or I'm working in an inappropriate way.

Today, I will make a program to compare two sdk_config.h files.
But I don't know if I should go this far.

Adding a new sdk module is too scary.
Let me know if there's a better way.

Parents Reply Children
No Data
Related