I'm relatively new and have been using 52832 DK for several months without any problems. It is a great product. As I gained experience, I've tried programming other boards (GT52832_A01) using a mini J-Link that I bought from Adafruit - again without problems. All of the example programs load and run on both DK and GT boards as expected.
I recently bought a few MDBT42Q modules from Mouser (they are made by Seeed Studios). I believe this is the same module used by Adafruit on their Featherboard 52832, so I thought this would be a good product to expand my experience. I was able to program the MDBT42Q boards using the J-Link, however, when I try to use anything with BLE the program loads but I'm not able to connect to the board via BLE. I load the soft device loads and then the program the same way as with the DK and GT boards, except I'm not able to connect to the MDBT42Q board. It is as if the board isn't advertising.
I did a search in the DevZone and found one post by Sudarshan J 10 months ago that looked similar to my problem but I'm not sure how to proceed and hope you might suggest some things to try.
The datasheet for the MDBT42Q basically says that you don't need any external circuitry to make the module work, so it may not be a clock problem - but I'm not sure. Since the module works fine (I can load simple blinky programs and program gpio, etc), I think I'm missing something simple.
A related question - I tried to use debug to set breakpoints before and after the advertising function to try to see what was happening. I tried to go stepwise through the program but execution just stops - so I must be missing something there as well. There is a warning that there is a 32Kb limit on evaluation in debug - is that the problem? Any suggestions?
Thank you for your help.
JimP said:MDBT42Q modules from Mouser (they are made by Seeed Studios)
You mean these: https://www.mouser.co.uk/ProductDetail/Seeed-Studio/317030213?qs=sGAEpiMZZMs1xdPSgahjwiL2lJlP6L5V96Mk9IiRNC0%3d ?
JimP said:The datasheet for the MDBT42Q basically says that you don't need any external circuitry to make the module work, so it may not be a clock problem - but I'm not sure
Probably means that you have to configure it to use the internal oscillator - have you done that?
JimP said: I believe this is the same module used by Adafruit on their Featherboard 52832
Would be a good idea to get an Adafruit Featherboard 52832 - then you'd at least have a know-good hardware platform to start with ...
JimP said:There is a warning that there is a 32Kb limit on evaluation in debug
Are you using Keil, then?
Segger Embedded Studio (SES) is free & unlimited for use with Nordic ARM-based SOCs ...
Yes. I'm using the module you show in the link. Yes - I'm using Keil as IDE - supplemented with nRFgo studio.
I haven't configured to use internal oscillator. How would I do that?
The featherboard comes with Arduino IDE. There must be a way to convert for Keil but I don't know how to do that.
Thank you for your help
Essentially this is just a nRF52832 module, so I recommend you use the normal nRF5 SDK (latest is 15.2) instead of featherboard (or other) stuff. The module includes the 32 MHz crystal, but there is no 32 kHz crystal (optional). Note that the nRF SDK examples assume that the crystal is present, so you have to adapt the SoftDevice configuration to use the internal RC instead. Other than that, you should expect any SDK examples to work out of the box.
Thank you Einar. Based on you comment - In SDK_CONFIG - I set NRF_SDH_CLOCK_LF_SRC 0 //set to RC and NRF_SDH_CLOCK_LF_ACCURACY 1 // set tp 500 ppm - per waring
but still can't connect to the module. I must still be missing something. Any other suggestions?
Thanks for your help.
I see. Did you remember to flash the SoftDevice as well as the application? If so yes and it still does not work, have you done some debugging to see what is happening on the target?