-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Arduino esp32 core cannot be used by other platform #4691
Comments
I want to build voltmeter using esp32 to display on my phone or a web browser? |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
The inability to define custom boards is a real nuisance. Is the issue blocked by this bug in arduino-cli? arduino/arduino-cli#1031 |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
it is arduino/arduino-cli#1012 in classic Arduino IDE the upload is still done by the IDE, not by the CLI. and the IDE doesn't know the paths which should be used in the esp32 (and esp8266) upload tool location to support referencing platforms or custom boards.. in IDE 2.00 custom boards definitions are not supported yet. |
Thank you for the info! I am unclear why, in issue esp8266/Arduino#5769 , your PR was not sufficient. Specifically:
I'm not sure what In case anyone else comes here looking for a workaround, here is how I have managed to add custom boards to the IDE boards menu. Tested with Arduino IDE v1.8.13 on Windows 10.
At that point, I was able to select my custom boards in the IDE board manager, compile, and upload without trouble. I hope someone finds this helpful. |
at the time of my PR in esp8266 Arduino, they changed to esptool.py in |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
it is still a valid issue |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
Is this still a valid issue? What would it take to resolve it? |
yes it is still valid. The problem is that {runtime.platform.path} is evaluated to board platform so |
Is there any strong reason replacing |
@egnor I think espota.py would not work at least in the IDE 1, because it is in tools and not installed as a tool |
And I take it IDE 1 compatibility is needed, even for arduino-esp32 3+? |
We get requests to support 32bit Windows and old Linux, so what is left for IDE1 :) We need to support it all, even in 3.0. There are works being done to streamline this and maybe in near future we will make things better, but not yet possible |
OK I made a specific proposal to change arduino-cli (and thus the IDE) that SHOULD solve this problem without requiring any platforms sacrifice backward compatibility?? |
Hardware:
Board: other
Core Installation version: 1.0.4/master
IDE name: Arduino IDE
Flash Frequency: -
PSRAM enabled: -
Upload Speed: -
Computer OS: All
Description:
I'd like to specify custom boards. According to the Arduino platform specification, I should be able to do refer to the esp32 platform for the build instructions (platform.txt) and only add additional board definitions (board.txt).
However, the platform.txt file of the arduino-esp32 core assumes
{runtime.platform.path}
its its own path instead of a derived platform. See also a similar issue with the esp8266 core: esp8266/Arduino#5769.Would using
{build.core.path}/../..
instead of{runtime.platform.path}
be a possibility here?Sketch: not relevant
The text was updated successfully, but these errors were encountered: