This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2431: connecting to am2431 with OpenOCD

Part Number: AM2431

Hi, I'm trying to connect to am2431 cpu with xds110 and openocd.

There's no specific config for am2431, however it seems similar enough to am 642.
So I've added an entry into ti_k3.cfg (into the big switch that decides which CPU is used):

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
am2431 {
set _CHIPNAME am2431
set _K3_DAP_TAPID 0x0bb3802f
set _armv8_cpu_name a53
set _armv8_cores 0
set _r5_cores 1
set R5_NAMES {main0_r5.0}
set R5_DBGBASE {0x9d410000}
set R5_CTIBASE {0x9d418000}
set _gp_mcu_cores 1
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


Which seems to work, however I wanted to ask,
what are the TAP IDs and DBG and CTI bases for am2431? and where would I find this info for future reference?


Thanks in advance

  • Also for anyone reading this in the future and struggling with openocd, this is the overall config.cfg I use. (run with -f board.cfg)

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    source [find interface/xds110.cfg]
    transport select jtag
    reset_config srst_only srst_push_pull
    adapter srst delay 20
    set SOC am2431
    source [find target/ti_k3.cfg]
    adapter speed 250
    gdb_port 3333
    bindto 0.0.0.0
    init
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  • Hi Martin,

    i just got notified about this thread today. https://github.com/openocd-org/openocd/blob/master/tcl/board/ti_am243_launchpad.cfg -> is that what you are looking for?

    openocd -c 'bindto 0.0.0.0' -f board/ti_am243_launchpad.cfg

    Feel free to poke me on IRC libera.chat #openocd channel and I could probably give some details.

  • woah! thank you so much, yeah! that's exactly what I need, you're awesome!!!