ataradov / free-dap

Free and open implementation of the CMSIS-DAP debugger firmware
BSD 3-Clause "New" or "Revised" License
254 stars 62 forks source link

TDO/TDI? #19

Closed koendv closed 2 years ago

koendv commented 2 years ago

in dap.c I find:

  if (select & DAP_SWJ_TDI)
    DAP_CONFIG_TDO_write(value & DAP_SWJ_TDI);

but I do not find a HAL_GPIO_TDO_out() This is strange.

ataradov commented 2 years ago

While functions are present, otherwise things will not build, the write must actually happen to TDI, not TDO. The pins are marked from the target point of view.

I fixed that.

koendv commented 2 years ago

Thank you. Will be using free-dap with Sipeed Longan Nano, GD32VF103 processor. Happy Christmas.