0

Can’t program BT832 Module using NRF52-DK [closed]

merzod gravatar image

asked 2017-09-24 10:47:56 +0100

updated 2017-09-24 11:01:32 +0100

I have read articles on the forum, watch youtube but still no luck. Actually I failed to find step by step tutorial how to do it from start to the end. Most of them touch wiring stuff only.

Hardware:

Wire thing up, just like https://devzone.nordicsemi.com/questi... or https://devzone.nordicsemi.com/questi... (tried both, with external 3.3v power for the BT832 module and w/o)

image description

Try to flash:

Using any ble peripheral example from SDK:

  • Cd pca10040/s132/armgcc
  • Make, make flash_softdevice, make flash

Using NRFog Studio:

  • See only 2 regions. No matter power I BT832 externally or no.
  • Re-flash both softdevice and application with appropriate binaries.

image description

Both actions successfully flash NRF52-DK only, but the BT832 left blank. How I check - I try to discover BLE devices using phone (nRF Connect application). NRF52-DK - fine, but BT832 invisible.

What am I doing wrong? Wiring schema I found in many places and it seems fine. Maybe I should programm is some other way and specify some extra attributes to point external device, not just NRF52-DK?

edit retag flag offensive reopen delete report spam

Closed as "the question is answered, right answer was accepted" by Alexey at 2017-09-28 20:48:11 +0100

Comments

Which app did you flash into the BT832? The BLE peripheral beacon app?

Matt ( 2017-09-25 03:28:01 +0100 )editconvert to answer

Initially I have tried on experimental_ble_app_blinky, but then on many one, e.g. ble_app_gls. Tried beacon also. Should I get any issues with beacon?

Alexey ( 2017-09-25 20:19:44 +0100 )editconvert to answer
1

I suggested the beacon app as the nRF Connect should see the advertising if the the BT832 is working.

I have not used BT832 before but I did load the BC832 eval board using the PCA10040 for my BLE work. Assuming BT832 is not that different from BC832 the wiring connections should be

P20 BC832

GND DETECT --> GND; VTG --> VDD; VDD --> VDD; SWDIO --> SWDIO; SWDCLK --> SWCLK;

Can you verify again you have the above wiring set up correctly between your PCA10040 P20 header and the BT832 module?

Matt ( 2017-09-25 21:03:21 +0100 )editconvert to answer

Finally able to flash. I suppose that GND DETECT = GND, but it's not and they need to be connected. Still don't see any change in nRFgo Studio though. But I believe that this is due to connection w/o external 3.3v power.

Alexey ( 2017-09-28 20:45:59 +0100 )editconvert to answer

You need to connect the P20 GND DETECT to the Gnd on your custom board, and if you use PCA10040 to power up your custom board, then yes, the Gnd on your custom board becomes the GND (say from P1) of your PCA10040.

Matt ( 2017-09-28 21:17:22 +0100 )editconvert to answer

1 answer

Sort by » oldest newest most voted
0
endnode gravatar image

answered 2017-09-24 11:32:23 +0100

Hi Alexey,

You said you have found only guides how to wire the thing and that you read them but from what I see on your photo you don't wire P20 header properly! Internal SEGGER J-Link FW needs to detect that there is external target on that port otherwise it obviously flashes internal nRF5x chip on the DK. So please kindly power your target module from first 3V3 (VDD nRF) PIN on P20 header (this can go alternatively from different 3V3 PIN on nRF5x DK or even from external source - if you then ground the system properly!) and short second and third PINs (VDD and VTG) so that SEGGER J-Link can detect your intentions.

Also your wires might be too long, uneven in the length and too clumpsy (= vulnerable to noise). JTAG/SWD flashing is surprisingly sensitive to the wiring, using short (as short as possible) and thick cables can save you from few days of debugging (= searching for ghost in the system). But this is just secondary advice "in case you still face the troubles", the first one might already solve your problem.

Cheers Jan

edit flag offensive delete publish link more

Comments

I have tried the way you propose, power BT832.VDD with P20.VDDnrF connect P20.VDD and P20.VTG with BT832.VDD. In this way all 4 pins are shorted. https://photos.app.goo.gl/Eq9UYfXMcQd...https://photos.app.goo.gl/kDpoiK8poms...

Each time I try to connect to NRF52-DK via nRFgo Studio, the board goes to reboot. Try to flash from console gives: https://photos.app.goo.gl/e3gR4iEb3Q9...

Do you think this is wires length issue?

Alexey ( 2017-09-25 20:15:12 +0100 )editconvert to answer

Have you looked at the comment that Matt posted above? Might be a wiring issue. I will take a closer look at this issue. Also, like endnode mentioned, could be an idea to use thicker and shorter wires if you have them available.

Bjørn Kvaale ( 2017-09-28 11:26:23 +0100 )editconvert to answer

User menu

    or sign up

Recent questions

Question Tools

2 followers

Stats

Asked: 2017-09-24 10:47:56 +0100

Seen: 127 times

Last updated: sep. 24