Skip to content

Show "Board details not available. Compile the sketch once." when click upload #3

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

Closed
Metaphorme opened this issue Oct 24, 2023 · 5 comments

Comments

@Metaphorme
Copy link
Contributor

Sorry for bothering you again...

I had set fqbn and I could compile and upload my firmware. But when I tried to update files into LittleFS, it shows "Board details not available. Compile the sketch once.".

I tried to know what it means and found something here :

if ((arduinoContext.boardDetails === undefined) ||  (arduinoContext.fqbn === undefined)){
    vscode.window.showErrorMessage("Board details not available. Compile the sketch once.");
    return;
}

I'm sure that I have set my fqbn, but I don't know how to set arduinoContext.boardDetails. Maybe this problem has to do with this?

fqbn had set:

截屏2023-10-25 01 32 01

boardDetails had set(maybe):

截屏2023-10-25 01 33 00

Tools -> Get board info:

截屏2023-10-25 01 34 02

Thanks for your help!

Have a nice day! :)

@earlephilhower
Copy link
Owner

Please see the readme about the bug in the IDE and workaround when this happens.

@Metaphorme
Copy link
Contributor Author

Solution: https://github.com/earlephilhower/arduino-littlefs-upload#glitches

Thanks! It never occurred to me that these two things could be so mysteriously related.

@reivaxy
Copy link

reivaxy commented Nov 25, 2023

@Metaphorme to me neither, thanks for creating this issue!
@earlephilhower It might help to add the error message "Board details not available. Compile the sketch once." in the glitches paragraph, what do you think?

@earlephilhower
Copy link
Owner

@reivaxy I'm sorry, but I don't quite understand your suggestion. Why not make a PR (for text docs like this you can do it right from the GH website) to make it clear?

@Quantummechanic1
Copy link

This issue still exists in Arduino IDE 2.3.4

Image

@earlephilhower the suggestion by @reivaxy is to add the error message in the readme, so that a Google search will lead to that particular paragraph.

BTW, I opened the IDE (on Win10) by double clicking on the .ino file. The sketch compiled and uploaded successfully, but the Upload LittleFS failed with "Board details not available. Compile the sketch once.".
A re-compile did not solve. A change of board and back and re-compile, as suggested, resulted in another error (sketch path and data path undefined).
For me, the problems were solved by opening another sketch (via File->Open recent), close the failing sketch, re-open and close the other sketch (i.e. there is finally only one IDE running).

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

4 participants