Hi
I am using the SDK_16.0.0 and SDK_for_mesh_4.0.
Board: PCA10056, nRF52840.
1) I try to send strings to from the nRF to PC and then, using a python script, poll messages from the COM-Port.
I tried the UART example from the SDK16 and it worked. All the messages i send with printf() are received from my python script.
Now I'm trying to use this printf() function in my main.c file in the experimental_lpn example from the SDK_for_mesh_4.0. The code looks like this:
if i don't include anything else in this main.c file, the program runs on the DevKit. However when i press the button_0, the LED goes on and my program then gets stuck in the printf() function. When I remove the printf() function, I can toggle the LED0 with button_0.
2) I then tried to edit the sdk_config.h file in experimental_lpn/include/sdk_config.h and set all the ENABLE_UART to 1.
it should look similar to the sdk_config.h from the uart example. This did however not change anything in functionality.
3) Then I thought i should just include everything that's also included in the uart example:
when i tried to build and run my code now, i get the error: Fatal error: can't create build/lpn_nrf52840_xxAA_s140_7.0.1_Debug/obj/lpn.o: Permission denied
my final main.c looks like this:
I have no idea how to proceed now. All i want is to send some strings from my LPN to my PC and read it using python (I have a functioning script to read a COM-Port).
Is there some easier way to do this where I don't have to include a hundred different .h files?
Thank you.
BR.