picotool and USB/UART logging

This commit is contained in:
embr 2023-04-23 21:01:15 +02:00
parent ca2b80f906
commit 069eb3c4f8
3 changed files with 6 additions and 1 deletions

View file

@ -17,5 +17,9 @@ target_link_libraries(vibe-check
pico_cyw43_arch_none pico_cyw43_arch_none
) )
# enable debug logging to USB and UART
pico_enable_stdio_usb(vibe-check 1)
pico_enable_stdio_uart(vibe-check 1)
# create map/bin/hex/uf2 file in addition to ELF. # create map/bin/hex/uf2 file in addition to ELF.
pico_add_extra_outputs(vibe-check) pico_add_extra_outputs(vibe-check)

View file

@ -2,5 +2,6 @@
pkgs.mkShell { pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
cmake ninja python3 gcc-arm-embedded cmake ninja python3 gcc-arm-embedded
picotool
]; ];
} }

View file

@ -9,7 +9,7 @@
int main() { int main() {
stdio_init_all(); stdio_init_all();
if (cyw43_arch_init()) { if (cyw43_arch_init()) {
printf("Wi-Fi init failed"); printf("WiFi init failed");
return -1; return -1;
} }
while (true) { while (true) {