[SOLVED] Programming a STM32F103RE with JLINK BASE

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Programming a STM32F103RE with JLINK BASE

    Hello. I am trying to re-program a dev board but the target is not being recognized using J-link from SEGGER. I was able to successfully use the J-Link on another board (not from New Haven) with no problems. Here's the equipment I have:

    The J-Link is able to detect this device:
    [img]http://i.imgur.com/pPAIDRW.png[/img]

    But not the STM32F103RE target:
    [img]http://i.imgur.com/EyqGONI.png[/img]


    Any suggestions would be appreciated. I have contacted the manufacturer of the NH board but they haven't been helpful.H board but they haven't been helpful.
  • Hi,


    in the 2nd screenshot, J-Link measures 0.000V as target voltage.
    This indicates that either the target is not powered or the wiring / connection from the J-Link to the target is not correct.

    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Thanks for getting back to me.

    The board is being powered by its own supply. Here are the JTAG pins on the board and how I have it connected:

    [img]http://i.imgur.com/JXQ9HjG.jpg[/img]

    I checked the pin layout schematic and this looks right to me. My connection to the board:
    [img]http://i.imgur.com/TaAR5S6.jpg[/img]


    Now if I connect it the other way around, the LED on the JLINK BASE programmer turns red but I get voltage reading on the target. But this way of connecting doesn't match the pin layout for JTAG if I am correct?
    [img]http://i.imgur.com/q6pXvGT.jpg[/img]


    Even though there is now voltage measured, there is still an error trying to connect under reset.
    [img]http://i.imgur.com/kyDihn5.png[/img]


    The dev board has a reset button on it. I read instructions somewhere to hold down the reset button and then try to program/erase the chip. However, it still doesn't connect.
    [img]http://i.imgur.com/dwxeAmT.png[/img]



    Thanks in advance!
  • Hi,

    the connection of the JTAG Adapter on the 2nd picture is the correct one.
    Could you please check in which position the jumper SUPPLY_SELECT is connected?

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • The SUPPLY SELECT is currently on 3.3V

    [img]http://i.imgur.com/YMoHQ8E.jpg[/img]




    I tried it with the SUPPLY SELECT set to 5V as well but it didn't help. Note that the LCD display I am interfacing the dev board with requires a 3.3v power supply.
  • Hi,

    so to summarize this quick.
    You can program other boards with the J-Link no problem, but with this particular board there seem to be some power issues?

    Could you check with a multimeter or some other voltage measurement tool if Pin 1 of the JTAG headers i getting 3.3 V?
    If not please check directly at the CPU if its VDD pin is supplied with 3.3 V at all.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Yes, that's correct. I have been able to use the JLINK programmer on other boards.
    I measured all the pins on the JTAG header. Here are the results:
    [img]http://i.imgur.com/qLo3VCK.png[/img]

    I have the schematics of the dev board I am working with (attached). Based on the schematics, pin 1 is not connected to anything. Pin 3 is getting the 3.3v reading.
    I also measured the microcontroller's various Vdd/Vss pins. Here are the results:
    [img]http://i.imgur.com/dzq70SD.png[/img]

    Reference pin layout of STM32F103RE: [img]http://i.imgur.com/1ubmKPp.png[/img]


    If you need more information let me know.
    Files
    • NHDev_v2.bmp

      (394.3 kB, downloaded 706 times, last: )
    • NHDev_v2_1.bmp

      (394.3 kB, downloaded 696 times, last: )
  • Hello,

    I have the schematics of the dev board I am working with (attached). Based on the schematics, pin 1 is not connected to anything. Pin 3 is getting the 3.3v reading.

    This is where the problem lies. VTRef needs to be connected to VDD (3.3 V in this case) otherwise the J-Link does not know what voltage to use for the debug interface and cannot program the device.
    So please make sure Pin 1 on the JTAG header is somehow connected to 3.3 V. This should do the trick as the CPU seems to be connected and supplied properly.
    You can either use our J-Link Supply adapter or do soldering work on your own.
    Please note that we do not take responsibility for any damages caused by soldering works applied to the target board.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Thanks for the info. Here's an update. I got the Target Supply Adapter but I am still having the same issue. Is there a pin I can measure on the Adapter to ensure it is functional? At this point, I am not sure what else can be done.

    [img]http://i.imgur.com/ZukSNWD.jpg[/img]



    [img]http://i.imgur.com/LGZBS31.png[/img]
  • Hi,


    correct, this the Target Supply Adapter.
    The J-Link Target Supply Adapter provides an adjustable supply voltage to the target board.


    Unfortunately, As Nino wrote (and as it is described on the website) the J-Link Supply adapter is the correct adapter for this issue. (Pin 1 not connected to VCC of the target MCU)
    The J-Link Supply Adapter provides a fixed I/O voltage level for VTRef. It eliminates the need to connect VTRef (pin1) to the target.

    It seems that Nino initially linked to the wrong adapter, however, his answer and the name of the adapter ("J-Link Supply adapter") was correct.


    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.