Closed MrTucks closed 1 year ago
Enable Win32 LongPaths and retry.
Does it still fail?
Thank you so much! I got it working!
I activated it like your link says and then did a full restart of the PC. Unfortunately, the same error still occurred.
Then I followed this: https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows
git config --system core.longpaths true
I tried it again and there was some error about a missing build script, so I just deleted .platformio, reinstalled platformio and tried again.
And it worked!
It installed everything. After changing the board to rpipicow in platformio.ini the LED blinking example just worked on my Pico W!
🥳
Windows long paths support is kinda wonky, but I guess I can live with it. :D
I think I still have some (minor) issues:
Please note: check results might not be valid! Try adding --skip-packages
Yes, cppcheck has problems when it's let loose on the toolchain folders. But it's not strictly needed when it's only supposed to check your firmware code. As per documentation, add check_skip_packages = yes
to the platformio.ini
and retry.
Thank you very much!
Steps to reproduce:
[env:pico] board = pico ; if using picoprobe SWD upload / debugging ;upload_protocol = picoprobe ;debug_tool = picoprobe
error: unable to create file Application/8_uarts_server/RT-Thread/uart_server_rtt/rt-thread/components/vmm/linux_patch-v3.8/0001-RTT-VMM-implement-dual-system-running-on-realview-pb.patch: Filename too long error: unable to create file Application/8_uarts_server/RT-Thread/uart_server_rtt/rt-thread/components/vmm/linux_patch-v3.8/0002-arm-gic-correct-the-cpu-map-on-gic_raise_softirq-for.patch: Filename too long [...] Submodule path 'pico-sdk/lib/tinyusb/tools/uf2/hidapi': checked out 'a6a622ffb680c55da0de787ff93b80280498330f' fatal: Unable to checkout '17761f5cf9dbbf2dcf665b7c04934188add20082' in submodule path 'pico-sdk/lib/tinyusb/hw/mcu/wch/ch32v307'
fatal: Failed to recurse into submodule path 'pico-sdk/lib/tinyusb'
Submodule path 'tools/libbearssl/bearssl': checked out 'f294aa022f82833941ffdf3b0f306c2072e3a26c' Submodule path 'tools/pyserial': checked out '0e7634747568547b8a7f9fd0c48ed74f16af4b23' fatal: Failed to recurse into submodule path 'pico-sdk'
Error: VCS: Could not process command ['git', 'clone', '--recursive', 'https://github.com/earlephilhower/arduino-pico.git', 'C:\Users\linus\.platformio\.cache\tmp\pkg-installing-i_j1ir8r']