From 171199e73bb204f117d5096e77867a864d068e62 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 17 Mar 2025 12:23:51 -0500 Subject: [PATCH] pico_generate_pio_header must be moved later --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b019ef..b2c5972 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,7 +123,6 @@ else() add_compile_definitions(GPIO_VID_BASE=${VIDEO_PIN}) set(VIDEO_SRC src/video_vga.c) - pico_generate_pio_header(firmware ${CMAKE_CURRENT_LIST_DIR}/src/pio_video.pio) endif() @@ -179,6 +178,10 @@ if (TARGET tinyusb_device) ${CMAKE_CURRENT_LIST_DIR} ) + if (NOT USE_HSTX) + pico_generate_pio_header(firmware ${CMAKE_CURRENT_LIST_DIR}/src/pio_video.pio) + endif() + pico_enable_stdio_uart(firmware 1) # Needed for UF2: