Debug support #31
-
Hi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Firmware must be recompiled with DEBUG_APDU=1 and attach the pico's UART to your machine through a serial port. UART pins depend on your specific pico device but your vendor will provide a pinout diagram for sure. Then open a console and connect it to the serial port at 115200 bauds. All CCID in/out messages will appear in the screen. Another quick way to debug (but more tedious) is using Wireshark to sniff all USB packets. It is much simpler but USB payloads contain more garbage. What do you want to debug specifically? |
Beta Was this translation helpful? Give feedback.
Firmware must be recompiled with DEBUG_APDU=1 and attach the pico's UART to your machine through a serial port. UART pins depend on your specific pico device but your vendor will provide a pinout diagram for sure. Then open a console and connect it to the serial port at 115200 bauds. All CCID in/out messages will appear in the screen.
Another quick way to debug (but more tedious) is using Wireshark to sniff all USB packets. It is much simpler but USB payloads contain more garbage.
What do you want to debug specifically?