Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

SDK • Re: PICO 2 + HDMI Ext board

$
0
0
CMake Error at /home/mc/pico/pico-sdk/src/rp2040/boot_stage2/CMakeLists.txt:44 (add_executable):
Cannot find source file:

/home/mc/pico/pico-sdk/src/rp2_common/boot_stage2/boot2_w25q080.S
I get the equivalent error when building against Pico SDK 2.2.0 using a slightly modified 'CMakeLists.txt' so the build should work as they usually do for me.

Comment out 'add_subdirectory(apps)' and 'cmake' completes without errors.

With that uncommented, commenting out 'add_subdirectory(vista-palette)' in 'apps/CMakeLists.txt' completes.

With that uncommented, looking in 'apps/vista-palette/CMakeLists.txt' we see -

Code:

pico_define_boot_stage2(vista-palette_boot2 ${PICO_SDK_PATH}/src/rp2_common/boot_stage2/boot2_w25q080.S)target_compile_definitions(vista-palette_boot2 PRIVATE PICO_FLASH_SPI_CLKDIV=4)
So that first line seems to be what's asking for the non-existent file, is presumably coded for some different SDK version.

Commenting out those two lines lets 'cmake' succeed.

But 'make' fails because I think it's perhaps looking for something specified in whatever old SDK it was expecting.-

Code:

/home/pi/mypico/xxxx/Pico-HDMI-board/software/libdvi/dvi.c: In function 'dvi_dma_irq_handler':/home/pi/mypico/xxxx/Pico-HDMI-board/software/libdvi/dvi.c:187:68: error: 'dma_debug_channel_hw_t' has no member named 'tcr'  187 |          while (dma_debug_hw->ch[inst->dma_cfg[i].chan_data].tcr != inst->timing->h_active_pixels / DVI_SYMBOLS_PER_WORD)      |                                                             ^
But I can't get it to compile against SDK 1.4.0, 1.5.1, 2.0.0, 2.1.0, 2.1.1 or 2.2.0 and that's all I've got.

Forgot to flush the build directory so got caught by 'cmake'.caching. It builds against SDK 1.4.0 but it doesn't link -

Code:

[ 95%] Linking CXX executable vista-palette.elf/usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld: cannot find -lvista-palette_boot2_library: No such file or directory
So I guess you need Pico SDK 1.4.0 and need to replace 'pico_define_boot_stage2' with something else.

No idea what. That's as far as I went. And probably as far as I'm going.

You could try asking Spotpear to update the code so it works with Pico SDK 2.2.0; that might work, but I wouldn't have high hopes..

My recommendation would be to forget that ZIP file, go googling for something which uses the same pins for the HDMI socket which builds against SDK 2.2.0 or whatever you have installed.

But you could try editing the code to make it work or convince someone to do that for you. I wouldn't have a clue where to start so can't help there.

Statistics: Posted by hippy — Tue Feb 03, 2026 8:27 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles