|
|
@ -24,6 +24,13 @@ It is recommended to only enable logging when needed, and not leaving it on by d |
|
|
|
The following KConfig values need to be set, either by copy and pasting into the `app/prj.conf` file, or by running |
|
|
|
The following KConfig values need to be set, either by copy and pasting into the `app/prj.conf` file, or by running |
|
|
|
`west build -t menuconfig` and manually enabling the various settings in that UI. |
|
|
|
`west build -t menuconfig` and manually enabling the various settings in that UI. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:::note |
|
|
|
|
|
|
|
If you are debugging your own keyboard in your [user config repository](./user-setup.md), use |
|
|
|
|
|
|
|
`config/boards/shields/<your_keyboard>/<your_keyboard>.conf` instead of `app/prj.conf`. In Github |
|
|
|
|
|
|
|
Actions, you can search the `Kconfig file` build log to verify the options above have been enabled |
|
|
|
|
|
|
|
for you successfully. |
|
|
|
|
|
|
|
::: |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
# Turn on logging, and set ZMK logging to debug output |
|
|
|
# Turn on logging, and set ZMK logging to debug output |
|
|
|
CONFIG_LOG=y |
|
|
|
CONFIG_LOG=y |
|
|
@ -50,13 +57,6 @@ CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0" |
|
|
|
CONFIG_USB_UART_DTR_WAIT=n |
|
|
|
CONFIG_USB_UART_DTR_WAIT=n |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
:::note |
|
|
|
|
|
|
|
If you are debugging your own keyboard in your [user config repository](./user-setup.md), use |
|
|
|
|
|
|
|
`config/boards/shields/<your_keyboard>/<your_keyboard>.conf` instead of `app/prj.conf`. In Github |
|
|
|
|
|
|
|
Actions, you can search the `Kconfig file` build log to verify the options above have been enabled |
|
|
|
|
|
|
|
for you successfully. |
|
|
|
|
|
|
|
::: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Viewing Logs |
|
|
|
## Viewing Logs |
|
|
|
|
|
|
|
|
|
|
|
After flashing the updated ZMK image, the board should expose a USB CDC ACM device that you can connect to and view the logs. |
|
|
|
After flashing the updated ZMK image, the board should expose a USB CDC ACM device that you can connect to and view the logs. |
|
|
|