Can't flash external PCB with nRF52 DK (No idcode detected)

Hi,

I have external PCB, looks like this:



Need help with flashing the nRF52832 chip via nRF52 DK, please.

External PCB have identical pin assignments as QFN48 pin assignments (https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpin.html&cp=2_1_0_3&anchor=pin_assign)

Wired by this schema:

External PCB               nRF52 DK     
NAME PIN NAME PIN
VDD (3 Volts) 48 VDD VDD
VDD (3 Volts 48 VTG VTG
SWD IO 26 SWD IO SWD IO
SWD CLK 25 SWD CLK SWD CLK
GND (VSS) 45 GND DETECT (P20) GND DETECT (P20)
GND (VSS) 45 GND GND

(https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpin.html&cp=2_1_0_3&anchor=pin_assign)

I'm using SEGGER Embedded Studio but when I try Connect J-LINK I get error:



Failed to connect to target. No idcode detected. Please check connection and Target interface Type

Badly wired pins ? Or is problem in something different ?

nRF52 DK flashing (Build and Run) works perfectly fine.

  • JirkaMartinec said:
    What types of bypass capacitors would you recommend ? For this use of testing would ceramic or electrolytic be fine ? Could you recommend me a good suplier ?

    We have listed the type of components in our reference files, so you can find everything there but for you it might be difficult to implement on a breadboard. And since capacitors will be very far away from the chip compared to our reference design so there will be some extra capacitance and such, and if you are using a breadboard there is also some extra capacitance in the breadboard also. 

    You have the right amount of components and values in the table you listed, but I want to be very clear.  The design I shared is not to be used in any actual design or prototype. It is extremely limited and is lacking essential parts. So it is only for your current design that you all ready have so that you can test and see if you are able to program the chip. Not something we recommend that you actually follow for any future projects. It might not work at all, cant say for sure. 

    For the components you can see the specs here: https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ref_circuitry.html?cp=4_2_0_52_0#schematic_qfn48_ldo 


    I marked the components that matches the previous schematic I shared. 


    JirkaMartinec said:
    What types of bypass capacitors would you recommend ? For this use of testing would ceramic or electrolytic be fine ? Could you recommend me a good suplier ?

    For a new design use ceramic components that matches Bill of Material (BOM). But you can try electrolyte if find that easier to test if you can program the device you now have. 


    Using a simple Blinky could work.



    JirkaMartinec said:
    Do you have any Gerber or Sheet files for PCB program like EasyEDA ? (For the Schematic you send)

    We don not have any EasyEDA files, and not for the version I sheared(Again not a design we will recommend). You can find all our Hardware files in the products home page. They include the GERBER and Alitum files as well as PDF format. 
    https://www.nordicsemi.com/Products/nRF52832/Download?lang=en#infotabs 




    JirkaMartinec said:
    I am worried that the nrf_delay_ms function would not work because I have no timers (marked as X1, X2) ? Or those components looking like a clock ?

    There is the internal clock, so I believe it should work, it is less accurate but should do the job. 



    JirkaMartinec said:
    This symbol is for Ground (GND), correct ?

    Yes, that is correct. 


    JirkaMartinec said:
    So If I understand this correctly:

    Yes, point 1 to 4 and 6, is correct.  

    JirkaMartinec said:
    5. Pin 45 to the Ground (GND) and also to C10 (1.0uF capacitor) also from the C10 to pin 46 ?

    Pin 45 can go directly to GND. Don't have to touch the C10 capacitors negative(GND) side. 



    As for the wiring, this is uncharted territory, you will just have to try, it might not work at all, loose and poor contact + extra capacitance form the cables and breadboard might make this task very hard, and probably somewhat unpredictable.  


    So, might get it to work, but not something I would develop on.

    Regards,
    Jonathan

  • Hi Jonathan,

    thank you so much for answer ! I would try to design custom PCB with all the needed components for my project.

    Also I have a question what are the DEC pins for ?

    And shouldn't be there also a part for the DEC2 ? (I found it in the downloaded schematic)





    One more question, how can I continue our conversation and not have to start a new reply every time ? I couldn't find the reply button on your answer.

    Thanks !

  • JirkaMartinec said:
    Also I have a question what are the DEC pins for ?

    DEC pins are related to some internal thing on the chip that needs to be decupled.  So for example the internal power rail, it needs a capacitor to behave properly and be stable. 


    JirkaMartinec said:
    And shouldn't be there also a part for the DEC2 ? (I found it in the downloaded schematic)

    DEC2 is not needed. It can be populated, but it is not needed. 




    JirkaMartinec said:
    One more question, how can I continue our conversation and not have to start a new reply every time ? I couldn't find the reply button on your answer.

    A issue that sometimes occurs on the Devzone web page is that if you are using some addons in the browser, like AdBlock for example, it can sometimes effect what buttons showing. 

    So try to refresh the page a couple of times then the reply buttons should show up, if not try a different browser or incognito mode. 

    Regards,
    Jonathan

Related