espruino / EspruinoDocs

See http://espruino.com for the complete Espruino Documentation - many links in this repository will not work
http://www.espruino.com/
Other
260 stars 284 forks source link

Clarifying notes on debugging the Bangle.js 2 with the nRF52 DK #656

Closed freetink3r closed 2 years ago

freetink3r commented 2 years ago

The nRF52DK.png image was incorrectly named, so the image isn't showing up on the page. The image was also missing the connection between the nRF52 DK VTG and VDD pins, which are required to be shorted on the latest boards in order to debug an external board like the Bangle.js 2. This commit removes the old nRF52 image (which wasn't showing up anyway because of the file extension mismatch) and adds a new schematic showing the additional short required.

gfwilliams commented 2 years ago

Thanks, that's great! Very odd about VTG though - I never had to do that even on the PCA10040... I was pretty sure the switchover was handled by the 'GND Detect' pin - but anyway, your diagram is a big improvement (especially over no diagram at all ;) !

freetink3r commented 2 years ago

@gfwilliams I noticed on the picture of the nRF52 DK that I replaced with my PR, the silkscreen was slightly different than mine. On your image (or whoever uploaded it), the pin next to VTG is VDD, but on my board that I just got from digikey.com, the pin next to VTG is RESET. The current Nordic documentation also shows it as RESET instead of VDD, so the Nordic documentation matches the version of the PCA10040 that I have.

The reason I mention this is because I wonder if something has changed on the PCA10040 board, either in hardware or in firmware, which now detects the external board using VTG instead of just relying on GND DETECT. I spent at least an hour or two banging my head against the wall, trying to get the debugger to connect to the external board (Bangle.js 2) instead of the onboard nRF52 chip, but it wouldn't work until I wired up VTG to VDD nRF. I found Simon's response on the Nordic forums, which gave me that idea. Disappointing that Nordic's documentation isn't clearer on the subject.

freetink3r commented 2 years ago

UPDATE: The silkscreen on my board does match the old image, with VDD next to VTG, but Nordic's documentation shows RESET next to VTG in their documentation for some reason: image

I pulled that from here: https://infocenter.nordicsemi.com/topic/ug_nrf52832_dk/UG/nrf52_DK/hw_drawings_v1.0.html

At any rate, the external board definitely doesn't work for me without connecting VTG to VDD or VDD nRF (either of the two pins next to VTG).