Giter Site home page Giter Site logo

Comments (1)

jfdelnero avatar jfdelnero commented on June 15, 2024

Please have a look to the "config.script" file, you can change the FT2232 pin assignation and configuration :

Here is the current default configuration :

`
//
// Probe internal mapping
//
// Olimex ARM-USB-OCD-H JTAG signals example
//
// VREF – voltage follower input for the output buffers adjust
// JTAG signals as per your target board voltage levels
//
// The TCK/TDI/TDO/TMS signals are fixed to these pins
// ADBUS0 -> TCK; (out)
// ADBUS1 -> TDI; (out)
// ADBUS2 -> TDO; (in)
// ADBUS3 -> TMS; (out)

// ADBUS4 -> 0 to enable JTAG buffers; (GPIOL0) (out)
// ADBUS5 -> 0 if target present; (GPIOL1) (in)
// ADBUS6 -> TSRST in; (GPIOL2) (in)
// ADBUS7 -> RTCK; (in) (GPIOL3) (in)
// ACBUS0 -> TRST; (GPIOH0)
// ACBUS1 -> SRST; (GPIOH1)
// ACBUS2 -> TRST buffer enable (GPIOH2)
// ACBUS3 -> RED LED; (GPIOH3)

//
// Set the internal GPIO direction (0 -> input, 1 -> output)
//

set PROBE_FTDI_SET_PIN_DIR_ADBUS0 1 // TCK -> out
set PROBE_FTDI_SET_PIN_DIR_ADBUS1 1 // TDI -> out
set PROBE_FTDI_SET_PIN_DIR_ADBUS2 0 // TDO -> in
set PROBE_FTDI_SET_PIN_DIR_ADBUS3 1 // TMS -> out
set PROBE_FTDI_SET_PIN_DIR_ADBUS4 1 // Buffers enable -> out
set PROBE_FTDI_SET_PIN_DIR_ADBUS5 0 // Target presence : 0 if target present -> in
set PROBE_FTDI_SET_PIN_DIR_ADBUS6 0 // TSRST -> in
set PROBE_FTDI_SET_PIN_DIR_ADBUS7 0 // RTCK -> in

set PROBE_FTDI_SET_PIN_DIR_ACBUS0 1 // TRST -> out
set PROBE_FTDI_SET_PIN_DIR_ACBUS1 1 // SRST -> out
set PROBE_FTDI_SET_PIN_DIR_ACBUS2 1 // TRST buffer enable -> out
set PROBE_FTDI_SET_PIN_DIR_ACBUS3 1 // RED LED -> out

//
// Set the internal GPIOs output state
//

set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ADBUS0 0
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ADBUS1 0
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ADBUS2 0
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ADBUS3 1
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ADBUS4 0 // JTAG buffer enable (active low)
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ADBUS5 0
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ADBUS6 0
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ADBUS7 0

set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ACBUS0 0 // TRST
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ACBUS1 0 // SRST
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ACBUS2 0 // TRST buffer enable
set PROBE_FTDI_SET_PIN_DEFAULT_STATE_ACBUS3 0 // RED LED

//
// Set the internal GPIOs polarity
// 0 : Active High.
// 1 : Active Low.
//

set PROBE_FTDI_SET_PIN_POLARITY_ADBUS0 0
set PROBE_FTDI_SET_PIN_POLARITY_ADBUS1 0
set PROBE_FTDI_SET_PIN_POLARITY_ADBUS2 0
set PROBE_FTDI_SET_PIN_POLARITY_ADBUS3 0
set PROBE_FTDI_SET_PIN_POLARITY_ADBUS4 0
set PROBE_FTDI_SET_PIN_POLARITY_ADBUS5 0
set PROBE_FTDI_SET_PIN_POLARITY_ADBUS6 0
set PROBE_FTDI_SET_PIN_POLARITY_ADBUS7 0

set PROBE_FTDI_SET_PIN_POLARITY_ACBUS0 1 // TRST is active-low
set PROBE_FTDI_SET_PIN_POLARITY_ACBUS1 0
set PROBE_FTDI_SET_PIN_POLARITY_ACBUS2 0
set PROBE_FTDI_SET_PIN_POLARITY_ACBUS3 0

//
// Assign the TRST / SRST control pins
// 0<>7 : ADBUS
// 8<>11 : ACBUS
// Set to -1 when not available/used.
//

set PROBE_FTDI_SET_TRST_OE_PINNUM 10
set PROBE_FTDI_SET_TRST_STATE_PINNUM 8

set PROBE_FTDI_SET_SRST_OE_PINNUM -1
set PROBE_FTDI_SET_SRST_STATE_PINNUM -1

set PROBE_FTDI_SET_CONNECTION_LED_PINNUM 11

set PROBE_FTDI_JTAG_TRST_DELAY_MS 200
`

from jtag-boundary-scanner.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.