No, you can't do that. If the usual USB pins are exposed the BOOTSEL loader will always accept uploads from Arduino and other tools when in BOOTSEL mode.So, can I use the RP2040 USB port for PC comms but somehow block it for Arduino use
You can however disconnect the usual USB pins then provide an alternative USB connection using Pico-PIO-USB which the BOOTSEL loader won't ever interact with.
I have no idea how to do that nor what effort would be involved in doing it.
Pico-PIO-USB will require two additional GPIO pins but you won't need to add an addition USB-to-UART chip.
Alternatively you could consider using an RP2350 instead of an RP2040. That appears it could do what you want but I haven't fully studied that aspect of the chip.
Statistics: Posted by hippy — Mon Sep 09, 2024 1:43 am