This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Programming a custom PCB with host MCU and Murata MBN52832 through NRF52DK P20 pins. ( "No idcode detected" Error)

Hello. I have a custom board which contains S32K148 MCU and Murata MBN52832 BLE Module and several other modules like GPS, LTE etc. Board is powered via external 12 V adapter but through voltage regulators modules are powered with 3.3V.

I am using SEGGER Embedded Studio as IDE.

I am trying to program MBN52832 module through its SWD pins using NRF52DK's P20 pins and pin connections goes like this:

P20.SWDIO          ---->  Custom Board SWDIO

P20.SWCLK         ---->  Custom Board SWCLK

P20.VTG               ---->  P20.VDD (To activate external flashing)

P20.GND Detect   ---->  Custom Board GND ( Custom board and NRF52DK have common grounds on a breadboard )

Now the problem is when I try to flash my code into custom PCB I get the following error.

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

I have read almost every post about external programming on here DevZone but the suggested solutions on other posts did not work for my problem.

I double-checked the board for soldering problems etc.

Application works fine on NRF52DK's internal NRF52832 SoC so I do not think it's a software based problem.

I'd appreciate any suggestion regarding this matter. Thanks in advance.

Best regards,

Furkan

 

  • Hi Furkan,

    No idcode detected indicates that the debugger is unable to communicate with the target IC. This usually means that there is a connection problem, or that the IO voltages don't match. Can you measure the voltage on the SWDIO pad on your custom board when it is powered but not connected to the debugger? The SWDIO line has an internal pull-up hand should therefore match the VDD voltage on your board. 

    Best regards,

    Vidar

  • Hi Vidar,

    Thanks for your reply. I measured the voltage on SWDIO and got the result of 3.31 Volts

    Best regards,

    Furkan

  • Hi Furkan,

    Thanks for confirming the pad voltage. You may also consider disabling the reverse voltage protection circuit on your DK to better match the IO voltage on your custom board, see the "Power supply" section of the DK user guide for instructions on how to do that.

    Best regards,

    Vidar

  • Hi Vidar,  thanks again for your reply.

    I tried shorting the related solder bridge to bypass reverse voltage protection but results were the same. I also tried using nrfjprog to get more insight about the problem. Here is the log file. Maybe you can bring something out of it.

    Best regards,

    Furkan

  • Hi Furkan,

    The log did not provide any additional clues, unfortunately. It shows the same problem where the programmer is unable to communicate with the target.

    Another thing you may try is to reduce the clock speed. This may help if you have long programming cables.

    e.g.

    $ nrfjprog --recover -c 125 // 125 KHz SWDCLK

    Could you also include a picture of your setup?

    Best regards,

    Vidar

Related