Can't get the JTAG to work in the OSM i.MX93 Starter Kit

  • Hello,

    I'm having trouble debugging the M33 firmware via JTAG with the FS 93 OSM-SF starter kit.

    My J-Link interface can't connect to the core. Here is the connection log:



    I edited the device tree to prevent Linux from using the pins shared with the DAP:

    - osm_can_b (flexcan2)

    - osm_gpio_a_0 (gpio3.30, touch panel interrupt)

    - osm_gpio_a_1 (gpio3.29, i/o expander interrupt on ADP_OSM_BB adapter)


    I can successfully debug other iMX93 based SoMs with the same interface/cable.


    What should I check?


    Thank you for your help.

  • Hi mfelx ,


    I suspect there is an incompatibility between the ADP-OSM-BB and the BBDSI.

    As you have already correctly noted, JTAG is shared with GPIO_A_0/1 and CAN_B.


    CAN_B is not connected on the ADP-OSM-BB, so no external interference can occur from it.


    The situation is different for GPIO_A_0 and GPIO_A_1.

    GPIO_A_1 is used as an IRQ for the GPIO expander on the ADP-OSM-BB. When the expander triggers an IRQ, JTAG_TMS is pulled to GND.


    GPIO_A_0 is used as I2C_CAM_IRQ (I2C_B_IRQ on the BBDSI).

    Here, there is a transistor that performs a level shift and inverts the signal.

    On the BBDSI, there is a 4.7 kΩ resistor that pulls I2C_B_IRQ high.


    I2C_B_IRQ (high) -> I2C_CAM_IRQ (high) -> GPIO_A_0 (LOW) -> JTAG_TCLK (LOW)


    I strongly suspect that JTAG_TCLK is permanently low in your setup, or is being held low.


    My recommendation:

    - The simplest solution would be to pull I2C_B_IRQ on the BBDSI to GND; this will prevent JTAG_TCLK from being pulled to GND.

    - Alternatively, components on the ADP-OSM-BB would need to be removed so that JTAG functions without interference.


    I hope I was able to help you here 😊

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Thanks for your quick reply.


    Are the schematics and the assembly drawings of ADP-OSM-BB and ADP-LVDS2LVDS1 available?

    Also a drawing of the BBDSI with reference designators would be helpful.