[SOLVED] problem in using j-link edu for debugging the stm32f4 discovery board

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

  • [SOLVED] problem in using j-link edu for debugging the stm32f4 discovery board

    dear segger team,

    I bought one segger j-link edu from mouser electronics just couple of weeks back and trying to check it by connecting it to my discovery board.

    I used the following link in order to interface the j-link with stm32f0 discovery board :

    segger.com/downloads/appnotes/…STM32-DiscoveryBoards.pdf



    information on page 14 has been used and I made the connections accordingly, but its not able to program and debug my board.


    also there is no 5 V output from pin 19 as checked from multimeter.

  • This time I used to program my STM32F0 Discovery Board with the Jlink Edu using the Keil IDE and simple blinky program.

    but it outputs following message in the Build output window of Keil IDE:


    JLink info:
    ------------
    DLL: V4.96d, compiled Jan 29 2015 11:45:37
    Firmware: J-Link V9 compiled Dec 16 2016 15:34:10
    Hardware: V9.40
    S/N : 269402212
    OEM : SEGGER-EDU
    Feature(s) : FlashBP, GDB

    Error: Flash Download failed - Target DLL has been cancelled
  • Hi,


    first of all,
    DLL: V4.96d, compiled Jan 29 2015 11:45:37

    could you please update to the most recent version of the J-Link software? segger.com/downloads/jlink

    also there is no 5 V output from pin 19 as checked from multimeter.

    This is the default behaviour (which is also explained in the manual UM8001):
    Target power supply needs to be activated by using either the "power on" / "power on perm" or by changing the setting in the J-Link control panel.


    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.
  • Hi niklas,

    I updated the j-link software and tried again but the problem still exist.

    Here I am attaching the screenshot of the Keil IDE.

    My development Board is STM32F0 discovery Board.

    st.com/en/evaluation-tools/stm32f0discovery.html


    Here find the attached screenshots.


    regards

    Piyush Pandey
    Images
    • 2017-01-05 14_32_12-Greenshot.png

      118.36 kB, 1,366×768, viewed 671 times
    • 2017-01-05 14_32_06-Greenshot.png

      130.23 kB, 1,366×768, viewed 652 times
    • 2017-01-05 14_31_58-Greenshot.png

      128.06 kB, 1,366×768, viewed 742 times
    • 2017-01-05 14_31_45-Greenshot.png

      122.08 kB, 1,366×768, viewed 741 times
    • 2017-01-05 14_31_31-Greenshot.png

      113.78 kB, 1,366×768, viewed 755 times
  • More attachment ......


    Please tell me why its not able to program or debug my development Board.


    regards

    Piyush Pandey
    Images
    • 2017-01-05 14_31_45-Greenshot.png

      122.08 kB, 1,366×768, viewed 577 times
    • 2017-01-05 14_31_31-Greenshot.png

      113.78 kB, 1,366×768, viewed 694 times
    • 2017-01-05 14_27_09-Greenshot.png

      116.02 kB, 1,366×768, viewed 698 times
  • Hi Piyush,

    In order to narrow down the list of possible causes of this issue:
    Could you please give J-Link Commander a try?
    J-Link commander is part of the J-Link software package, which is available free of charge here, which you just installed.

    • Start J-Link Commander (jlink.exe)
    • Type "connect" in order to start a debug session
    • Type in the target device name if asked (Or type "?" for a target selection Dialog)
    • Choose the correct target interface (JTAG/SWD/etc..)
    • Use a valid speed (Default: 4000kHz, try 100-500 if default does not work)
    • [JTAG only]JTAG conf can be default(most of the times)
    • You should now be successfully connected.
    • It is now possible to program a binary file via the >loadfile< command
    • The commands >r<, >g<, >h<, >s< can be used for reset, go, halt and step.
    • Breakpoints can be set by using the >setbp< command.
    If anything fails, could you please post a screenshot of the complete session?

    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.
  • Dear Niklas,

    Still its not programming and I am attaching the screenshots of experiments.



    regards

    Piyush Pandey
    Images
    • 2017-01-05 15_26_51-Greenshot.png

      67.27 kB, 1,366×768, viewed 644 times
    • 2017-01-05 15_26_37-Greenshot.png

      70.72 kB, 1,366×768, viewed 560 times
    • 2017-01-05 15_23_08-Greenshot.png

      139.87 kB, 1,366×768, viewed 704 times
  • Hi Piyush,

    The Output says VTREF = 0.000V.
    How do you power the board? USB? Pin19?
    As mentioned above, in order to provide power via Pin 19, you need to execute the command "power on [perm]" in J-Link Commander.


    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.
  • Hi Niklas,

    thanks for your support , I am now able to debug the STM32F0 Discovery Board.

    After issuing the command power on to the jlink it delievers the power and the stm32f0 discovery board being powered by jlink now can program the stm32f0 discovery board alongwith the debugging of the same.

    Also I noticed that the connections of the JTAG 20 pin connector is reversed , as I will check it again and due to which I think I was not getting the result. Therefore I used the separate jumper wires and did the connections as per the manual and now everything is working fine.

    Thank you very much once again for your very kind support.


    regards

    Piyush Pandey
  • Hi Piyush,

    good to hear that you are up and running!

    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.