diff --git a/README.md b/README.md index 8a772a1..14e97cb 100644 --- a/README.md +++ b/README.md @@ -57,4 +57,32 @@ Additionally configuration file must provide basic initialization and control fu * DAP_CONFIG_LED() * DAP_CONFIG_DELAY() +## Binaries + +Generally there are no pre-built binaries due to effort required to maintain +them and low potential benefit because of custom hardware requirement. + +For RP2040 and Raspberry Pi Pico board specifically there is a binary, since +it is a standard and a widely available board that has a nonvolatile bootloader. + +The UF2 file is located [here](bin/free_dap_rp2040.uf2). Simply boot into +a BootROM MSC mode and copy that file to the drive. + +I will try to do my best to keep this binary in sync with the code updates, but +it is a manual process, so I may forget. Let me know if you have any issues. + +The pins use are as follows: + +| GPIO | Function | +|:---:|:---| +| 11 | SWCLK/TCK | +| 12 | SWDIO/TMS | +| 13 | TDI | +| 14 | TDO | +| 15 | nRESET | +| 0 | VCP TX | +| 1 | VCP RX | +| 2 | VCP Status | +| 25 (LED) | DAP Status | + diff --git a/bin/free_dap_rp2040.uf2 b/bin/free_dap_rp2040.uf2 new file mode 100644 index 0000000..bdf70ef Binary files /dev/null and b/bin/free_dap_rp2040.uf2 differ diff --git a/platform/rp2040/hal_config.h b/platform/rp2040/hal_config.h index 9cc1176..729096e 100644 --- a/platform/rp2040/hal_config.h +++ b/platform/rp2040/hal_config.h @@ -14,8 +14,8 @@ HAL_GPIO_PIN(TDI, 0, 13, sio_13) HAL_GPIO_PIN(TDO, 0, 14, sio_14) HAL_GPIO_PIN(nRESET, 0, 15, sio_15) -HAL_GPIO_PIN(VCP_STATUS, 0, 6, sio_6); -HAL_GPIO_PIN(DAP_STATUS, 0, 7, sio_7); +HAL_GPIO_PIN(VCP_STATUS, 0, 2, sio_2); +HAL_GPIO_PIN(DAP_STATUS, 0, 25, sio_25); HAL_GPIO_PIN(UART_TX, 0, 0, uart0_tx) HAL_GPIO_PIN(UART_RX, 0, 1, uart0_rx)