raspberry pi gpio port

  • Petter Lindquist

    Would it be possible to use the gpio port on a raspberry pi as a JTAG programmer?
    Has it already been done?
    I've been monitoring this forum, but not seen a mention of raspberry.

  • tormod

    tormod - 2014-08-14

    The RasPi is already implicitly supported via the gpio driver in UrJTAG.

    Get raspbian:


    Get the following packages:

    sudo apt-get install autoconf
    sudo apt-get install autopoint
    sudo apt-get install libtool
    sudo apt-get install libreadline-dev
    sudo apt-get install python-dev

    git clone git://git.code.sf.net/p/urjtag/git urjtag-git
    cd urjtag-git

    Edit the file cmd_bfin.c in src/cmd and add the following line at the top:

    #define _SYS_UCONTEXT_H

    This is to avoid conflict between blackfin defines and system includes.


    make install


    pi> sudo jtag

    jtag> cable gpio tdo=9 tdi=10 tck=11 tms=25
    jtag> detect

    Create a JTAG cable with the following pinout:

    Pin Name        Raspberry Pi (GPIO Header)
    JTAG_TCK        23
    JTAG_TMS        22
    JTAG_TDI        19
    JTAG_TDO        21
    GND              6

    Based on an initial post by: WolfNexus

    • Paul Elliott

      Paul Elliott - 2015-07-24

      How do I (find out and/or tell) urjtag which gpio number represents the TRST and SRST signals?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks