Closed MrYorkiebar closed 1 year ago
I tried deleting the framework-arduinopico, toolchain-pico and tool-rp2040tools folders from the packages folder in .platformio. I then tried to build with this in the ini, updating the reference for toolchain-pico to the latest version:
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
board_build.core = earlephilhower
board_build.filesystem_size = 0m
platform_packages =
maxgerhardt/framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
maxgerhardt/toolchain-pico@https://github.com/earlephilhower/pico-quick-toolchain/releases/download/1.4.0-c/x86_64-w64-mingw32.arm-none-eabi-0196c06.220714.zip
It redownloaded everything but now I'm getting this error:
CONFIGURATION: https://docs.platformio.org/page/boards/raspberrypi/pico.html
PLATFORM: Raspberry Pi RP2040 (1.2.0+sha.74a6e8a) > Raspberry Pi Pico
HARDWARE: RP2040 133MHz, 264KB RAM, 2MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, jlink, picoprobe, raspberrypi-swd)
PACKAGES:
- framework-arduinopico @ 1.20504.0+sha.4cc6c36
- tool-rp2040tools @ 1.0.2
- toolchain-pico @ 5.100300.220714 (10.3.0)
KeyError: '__fetch_fs_size':
File "C:\Users\mryor\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 188:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\mryor\.platformio\platforms\raspberrypi@src-ff76a3915224135aafad379817f41edd\builder\main.py", line 222:
target_elf = env.BuildProgram()
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Util.py", line 737:
return self.method(*nargs, **kwargs)
File "C:\Users\mryor\.platformio\penv\lib\site-packages\platformio\builder\tools\piobuild.py", line 60:
env.ProcessProgramDeps()
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Util.py", line 737:
return self.method(*nargs, **kwargs)
File "C:\Users\mryor\.platformio\penv\lib\site-packages\platformio\builder\tools\piobuild.py", line 120:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Util.py", line 737:
return self.method(*nargs, **kwargs)
File "C:\Users\mryor\.platformio\penv\lib\site-packages\platformio\builder\tools\piobuild.py", line 331:
SConscript(env.GetFrameworkScript(name), exports="env")
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 660:
return method(*args, **kw)
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\mryor\.platformio\platforms\raspberrypi@src-ff76a3915224135aafad379817f41edd\builder\frameworks\arduino\arduino.py", line 39:
SConscript(build_script)
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 660:
return method(*args, **kw)
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\mryor\.platformio\packages\framework-arduinopico\tools\platformio-build.py", line 291:
env["__fetch_fs_size"](env)
File "C:\Users\mryor\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Environment.py", line 387:
return self._dict[key]
After several hours, in the end I uninstalled platformio then vscode then git for windows. I restarted and installed them again vscode first then platformio. I tried to build a new project with the earlephilhower core and received an error saying git doesn't exist then installed git and restarted.
I then had the issue of loading tasks lasting forever as soon as I change the core. Restarting and reinstalling did not help.
I solved this by turning off internet, loading up my platformio project with this core, attempting to build, let it fail to reach github then enable wifi and spam the build button until it starts downloading from git. This downloaded it from github properly with no issues relatively quickly.
I have no idea why this happened or even what I did to fix, all I know is this worked for me
I created a new project and followed the wiki for arduino-pico on platformio usage. It stated that the platform packages section was no longer needed, so now the ini should look like this.
I have used this but get this error
Using the line
pio pkg update -g -p https://github.com/maxgerhardt/platform-raspberrypi.git
as recommended gave this error:I'd appreciate any kind of help with this 🙂. I'm not sure whether this is the correct place to ask this or whether it should be on the arduino-pico github or on platformio forums.