picotool and USB/UART logging
This commit is contained in:
parent
ca2b80f906
commit
069eb3c4f8
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue