[SOLVED] j-link not programming in Linux environment

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

  • [SOLVED] j-link not programming in Linux environment

    I'm running a Ubuntu VM and having problems getting the Marvell External Tools to work with my Segger J-Link in Eclipse. I'm trying to program a 88MW300 Wifi module. The External Tools in the SDK are set up to call the flashprog.py script which programs the MCU application, and I keep getting the following error in the Eclipse console. I just updated the firmware in the j-link, and I'm using wmsdk 3.4.6. I'm not sure where to start looking - do these error messages provide any insight? Can I provide any more details that would help?


    Using OpenOCD interface file jlink.cfg
    Open On-Chip Debugger 0.9.0 (2015-07-15-15:28)
    Licensed under GNU GPL v2
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    adapter speed: 3000 kHz
    adapter_nsrst_delay: 100
    Info : auto-selecting first available session transport "jtag". To override use 'transport select '.
    jtag_ntrst_delay: 100
    cortex_m reset_config sysresetreq
    sh_load
    Info : J-Link V9 compiled Aug 17 2016 11:20:49
    Info : J-Link caps 0xb9ff7bbf
    Info : J-Link hw version 91000
    Info : J-Link hw type J-Link
    Info : J-Link max mem block 69952
    Info : J-Link configuration
    Info : USB-Address: 0x0
    Info : Kickstart power on JTAG-pin 19: 0xffffffff
    Info : Vref = 3.279 TCK = 0 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 1
    Info : J-Link JTAG Interface ready
    Info : clock speed 3000 kHz
    Error: usb_bulk_read failed (requested=87, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: Trying to use configured scan chain anyway...
    Error: usb_bulk_write failed (requested=10, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: usb_bulk_write failed (requested=6, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Warn : Bypassing JTAG setup events due to errors
    Error: usb_bulk_write failed (requested=92, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Warn : Invalid ACK 0 in JTAG-DP transaction
    Warn : Invalid ACK 0 in JTAG-DP transaction
    Error: usb_bulk_write failed (requested=88, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: usb_bulk_write failed (requested=88, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: usb_bulk_write failed (requested=88, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: usb_bulk_write failed (requested=88, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: usb_bulk_write failed (requested=88, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: usb_bulk_write failed (requested=88, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: usb_bulk_write failed (requested=88, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    Error: usb_bulk_write failed (requested=6, result=0)
    Error: jlink_tap_execute failed USB io (-107)
    error: -104
    in procedure 'chip_id'
    in procedure 'reset' called at file "openocd.cfg", line 7
    in procedure 'ocd_bouncer'


    OpenOCD failed! Aborting...

    The post was edited 1 time, last by njg001 ().

  • Hi,


    There is a bug that causes Full-Speed-USB J-Links (V9 and older, J-Link Pro V3 and older) to not work correctly with OpenOCD. (We need to look into this, but at the moment, we assume that has to be fixed on OpenOCD side)
    Workaround is to downgrade the J-Link firmware using J-Link 5.12j or older (segger.com/downloads/jlink/Setup_JLink_V512j.zip) by using the "exec invalidatefw" command in J-Link Commander. Although there are known issues, downgrading the J-Link firmware is not recommended and happens at your own risk.

    Do you need to work with OpenOCD, or would the GNU ARM eclipse plugin be an option for you?
    gnuarmeclipse.github.io/
    segger.com/IDE_Integration_Eclipse.html


    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.
  • Hello Forum,

    the issue regarding OpenOCD + J-Link models with Full Speed USB (V9 and older) has been fixed with the firmware "J-Link V9 compiled Sep 1 2016 18:29:50" or later, which is included in V6.00i or higher of the J-Link software & documentation pack.

    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.