I am not a platformio.ini expert, but I found that I could not compile the MeshCore firmware on my new Raspberry Pi OS based system using VSCode. The Raspberry Pi uses an ARM core processor. I do not have any issues with my Windows 11 Intel CPU based system.
I received this error:
Tool Manager: Installing platformio/toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0
UnknownPackageError: Could not find the package with 'platformio/toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0' requirements
I searched for this and I could not find it in the Git Hub code base, so I was not sure why it is loading this. The only place I found that "toolchain" existed was in a comment and not in the code.
It turns out this is an older version that is apparently no longer available and that is why it could not be found.
The solution was to add: toolchain-gccarmnoneeabi @ 1.400201.0 to the platformio.ini file.
[nrf52_base]
platform_packages =
toolchain-gccarmnoneeabi @ 1.1400201.0
VSCode then downloaded it and the MeshCore firmware would now compile with no errors.
Should this line be added to the main GitHub MeshCore codes platformio.ini file?
Or do I just need to add this each time to my local copy that I clone to my Raspberry Pi based system.
I am not a platformio.ini expert, but I found that I could not compile the MeshCore firmware on my new Raspberry Pi OS based system using VSCode. The Raspberry Pi uses an ARM core processor. I do not have any issues with my Windows 11 Intel CPU based system.
I received this error:
Tool Manager: Installing platformio/toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0
UnknownPackageError: Could not find the package with 'platformio/toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0' requirements
I searched for this and I could not find it in the Git Hub code base, so I was not sure why it is loading this. The only place I found that "toolchain" existed was in a comment and not in the code.
It turns out this is an older version that is apparently no longer available and that is why it could not be found.
The solution was to add: toolchain-gccarmnoneeabi @ 1.400201.0 to the platformio.ini file.
[nrf52_base]
platform_packages =
toolchain-gccarmnoneeabi @ 1.1400201.0
VSCode then downloaded it and the MeshCore firmware would now compile with no errors.
Should this line be added to the main GitHub MeshCore codes platformio.ini file?
Or do I just need to add this each time to my local copy that I clone to my Raspberry Pi based system.