raspberrypi / pico-examples

BSD 3-Clause "New" or "Revised" License
2.94k stars 844 forks source link

Coprocessor warnings when building for RISCV #533

Closed lurch closed 3 months ago

lurch commented 3 months ago

If I try building pico-examples for rp2350-riscv then I get this build warning:

[540/738] Linking CXX executable scanvideo/hscroll_dma_tiles/hscroll_dma_tiles.elf
WARNING: Instruction mrc 0, #7, r8, c7, c15, #0 is not supported by GPIO Coprocessor
WARNING: Instruction mrc 0, #7, r8, c7, c15, #0 is not supported by GPIO Coprocessor
WARNING: Instruction mrc 0, #7, r8, c7, c15, #0 is not supported by GPIO Coprocessor
[655/738] Linking CXX executable scanvideo/mario_tiles/mario_tiles.elf
WARNING: Instruction mrc 0, #7, r8, c7, c15, #0 is not supported by GPIO Coprocessor
WARNING: Instruction mrc 0, #7, r8, c7, c15, #0 is not supported by GPIO Coprocessor
WARNING: Instruction mrc 0, #7, r8, c7, c15, #0 is not supported by GPIO Coprocessor
[738/738] Linking CXX executable stdio/pio/stdio_pio.elf

(and I'm afraid I've got no idea what it means or how significant it is!)

will-v-pi commented 3 months ago

Those are warnings from picotool coprodis - looks like coprocessor dissassembly is running on Risc-V binaries, when it should only be running on RP2350 Arm binaries - I'll push a PR to the SDK to fix this, but you can ignore those warnings for now

lurch commented 3 months ago

I'll close this then, in light of https://github.com/raspberrypi/pico-sdk/pull/1875 :+1: