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

Beginner needing help with basic structure and pwm

I am a complete beginner, working through the tutorials and trying not to ask basic questions. However, I am up against a customer time limit and need some help. I am trying to create a program similar to nrf Blinky and soft LED. I need remote on/off and a 0 to 100% control of a 1KHz pwm signal that I can select on an app, and the device will follow. Think of as remote dimming control. I'm using the Murata WSM-BL241-ADA-008 MBN52832 and laid out my pcb to match the Muarata dev board connections. I've downloaded S132 and the Blinky example to my design and the board is alive and functioning as expected. So basically now I need some guidance on where to start adding advertising, the service, the raw data etc for pwm functionality to my version of Blinky. Thank you!

Parents Reply Children
  • YAY!! Thank you!

    Now I'm back to exceeding the maximum number of bytes so I have to work with SES or GCC. Unless there is something I can remove from this template?

  • Happy to help! I would recommend moving to Segger Embedded studio. You don’t wan't to spend the development phase working around the max code limit in Keil(free version, full version is expensive). SES is also completely free when using Nordic chips!

  • Ok, downloaded Segger, changed the RAM locations per the tutorial, opened the tutorial SES project file, tried to build and there are many errors lol

    Looks like the same issues before with missing files that the includes are looking for. First missing file is compiler_abstraction.h, which is stopping nrf_log_backend_serial.c and nrf_log_default_backends.c from compling.

  • Are you sure you have added the code at the right place in the folder structure? The compiler_abstraction.h file can be found in nRF5_SDK_15.0.0_a53641a\modules\nrfx\mdk\. If you open SES, right click on Project -> Edit Options -> change to Common Private Configuration -> Preprocessor -> User Include Directories, you can see the mdk folder at the bottom:

    Go to the location of your segger folder & see if that is at the correct location. You might need to add an extra folder at the top of the folder structure to get the correct include directories. You could also change the include directories location, but then you would probably need to do this for multiple instances.

    Basically, you want to make sure that the folder structure is identical to the other examples located in the SDK folder.

  • Its in the right location. Not all files are missing. I spent most of the night adding include file locations, still have errors. I am out of time and in danger of losing the client.

    If anyone offers code writing services, I am looking for someone to write a solution for me. I will come back to this later when I have time.

    EDIT: So, after a windows update and reboot, all seems to be well and the project compiles perfectly.

    Thank you guys for all your help. I still have a ton of questions - I have no idea how to receive a value from an app and use it to alter pwm duty cycle yet.

Related