Sorry in advance for the length and possible irrelevance of some of what I have written here
So I am trying to figure out how the ble software works. I have the ble_app_blinky as server and which has a definition for working with pca10059 the board for the nrf52840 dongle board and am adapting the ble_app_blinky_c as client. This only has a defined board pca10056 for the nRF52840 mk board (which I do not yet have, but have now purchased as it is going to be very difficult to develop with just a dongle...) The code builds fine, no errors (now that I have a set of defines for VS Code that seem to work) and I can flash soft device and application or separately as required.
The apps work, except...
On the ble_blinky_c I think the green led 1 LD1 which has the value 0 in the code won't come on. It should come on I think at startup whilst waiting to connect to the other board (that does come on green whilst advertising) I have swapped the boards round to check that the green led (LD1) does come on on both boards, so not a hardware fault.) I noticed that there is a very brief flash of LD1 though it looks red? Not enough voltage????
I just want to be able to light LD1.
I did try to chase the code - but it's spaghetti and with no debugger I'm not getting anywhere, but I did want to show I tried...
I also tried using a low level line of code in main.c that could light the LD2 led colours, but not the LD1.
I tried doing this by just doing
log_init();
I suspect that the LD1 is not getting configured/Initialised properly, but surely that common code is fine?
Is there something in the code that works fine for the pca10056 board, but screws things up in pca10059?
The rest of this post is probably irrelevant, but here is my trace through
main.c: -->