Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WORKAROUND] chipKIT core will not install in Arduino IDE 2.x #490

Open
JacobChrist opened this issue Mar 19, 2024 · 1 comment
Open

[WORKAROUND] chipKIT core will not install in Arduino IDE 2.x #490

JacobChrist opened this issue Mar 19, 2024 · 1 comment

Comments

@JacobChrist
Copy link
Member

This year I switched my class to Pico Pi but I'm still using chipKIT and Arduino board for some early labs. I have also switched to Arduino IDE 2.x. Some students have experienced issues of the chipKIT core not installing in Arduino IDE and instead getting an error about not being able to find the root directory.

A workaround we have found is that if we install chipKIT-core using Arduino IDE 1.8.x then restarting the 2.x IDE that chipKIT core will work.

@per1234
Copy link

per1234 commented Sep 22, 2024

chipKIT core not installing in Arduino IDE and instead getting an error about not being able to find the root directory.

It will be useful to provide the exact error message:

Installing chipKIT:[email protected]
Failed to install platform: 'chipKIT:pic32:2.1.0'.
Error: 13 INTERNAL: Cannot install tool chipKIT:[email protected]: searching package root dir: no unique root dir in archive, found '/Users/per/Library/Arduino15/tmp/package-10652322/bin' and '/Users/per/Library/Arduino15/tmp/package-10652322/lib'

The problem is that the archive doesn't have a root folder, which is specified as mandatory in the specification:

https://arduino.github.io/arduino-cli/latest/package_index_json-specification/#archive-structure

It must contain a single folder in the root.

% wget --output-file="$TMPFILE/pic32-tools-143-3-Darwin-image.tar.gz" https://github.com/chipKIT32/chipKIT-compiler-builds/releases/download/1.43-3/pic32-tools-143-3-Darwin-image.tar.gz

[...]

% tar -xzf "$TMPFILE/pic32-tools-143-3-Darwin-image.tar.gz"
% tree -L 1 .
.
├── bin
├── lib
└── pic32mx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants