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

Adding peripherals with custom functions/applications to a Mesh node

Hello, I am experimenting with your nrf5SDKforMeshv310

I can compile and download the included examples.

Because I own a few Thingy 52, I wish to flash them as light_dimming_servers (to build a small mesh network to be used for experimentation and evaluation).

I managed to flash them with a modified version of your project examples (.....nrf5SDKforMeshv310src\examples\experimental_dimming\dimming_server\light_switch_dimming_server_nrf52832_xxAA_s132_6_1_0.emProject) where I successfully moved the PWM output to the Thingy's P04/ANA/DIG2 and I can see the PWM signal acting as expected in the Thingy P8 connector.

Next step for me it would be to activate the UART peripheral and route it to the pins ANA/DIG0 and ANA/DIG1.

I am having difficulties in importing the relevant libraries for the UART peripheral.

I tried to copy something from the serial example (inside the Mesh sdk) but I have doubts where to cut the codes to avoid the mesh serialization code.... I wish to have a pure UART available in may future codes (I will use it for custom purposes)

Then I tried to copy some snippet from the nRF5_SDK_15.2.0_9412b96 sdk, but again I am stuck in tailoring the correct source codes and calling them properly.

I am new to Nordic SDKs, but it looks that the:

....Nordic\nRF5_SDK_15.2.0_9412b96\examples\peripheral\uart example

and

....Nordic\nrf5SDKforMeshv310src\examples\serial

have the UART implemented using different philosophies.

Then I tried to browse the documentation and the web in order to understand the correct approach, but I am missing a clear way on how to add/remove/use a peripheral starting from a ready made example included in the SDK's.

My plan is to start with the: ...nrf5SDKforMeshv310src\examples\experimental_dimming\dimming_server then to add UART, Timers and ADC functions to demonstrate some specific function for a new product that will use mesh technology.

I have read a lot of documentation, but I still miss some basic skill on how to manage the projects: simple things like adding/remove peripheral support, libraries ecc..

by the way: when I am working on the nrf5SDKforMeshv310src\examples\experimental_dimming\dimming_server example I am unable to start "CMSYS Configuration Wizard" over the sdk_config.h file whereas it opens normally with other projects like ....Nordic\nRF5_SDK_15.2.0_9412b96\examples\peripheral\uart

Can you suggest the correct steps to be taken to accomplish this?

Thank you in advance and

 Best Regards,

 Davide De Nardis

Related