-
Notifications
You must be signed in to change notification settings - Fork 30
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
Not able to use pioarduino platform with board arduino nano #124
Comments
To get Arduino 3.x all you need to do is to change the platform setting in platformio.ini. pioarduinoIDE is optional. |
Idk if pioarduino is working with the board Did the implementation of the Arduino nano tool The errors you have in your logs may not related to pioarduino either. Since the Arduino nano board requires GPIO pin redefinition (again weird design decision) the issues may caused by not working GPIO redefine in the Arduino Source code. Try a other "normal" esp32 dev board to see if the code compiles successfully there. Arduino crew provides a (very outdated) fork for the board https://github.com/arduino/arduino-esp32 EDIT: Probably this is not working as expected in espressif Arduino core 3.x.x. arduino/arduino-esp32@0a81532 |
@Jason2866 You are right, I tried selecting another board and it worked, but I have an Arduino Nano ESP32. |
I think you can use the board with pioarduino, just don't use the |
Thanks, I will try that. I think, this issue can be closed. |
@kumardeo Can you provide an easy example code which fails? I can't promise if i could fix (looks like an Arduino core issue). But i will have a look. |
Yes, sure.
#include <Arduino.h>
#include <Matter.h>
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED_BUILTIN, LOW);
delay(200);
digitalWrite(LED_BUILTIN, HIGH);
delay(200);
}
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:arduino_nano_esp32]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = arduino_nano_esp32
framework = arduino |
Is |
Ahh, issue is caused from the weird Arduino decision about there GPIO pin remapping!
So it fails, as expected |
This setting has to be changed to The complete code for remapping is here https://github.com/espressif/arduino-esp32/tree/master/variants/arduino_nano_nora |
I will change the Nano boards manifest in branch development (change will be in release core Arduino 3.2.0) to do no remapping and use All newer espressif code would probably fail when using the Arduino pin remapping. It was a shit decision from the beginning from the Arduino crew to do. |
Try:
have changed in actual develop branch to use HW GPIO numbers for the Nano board. |
Fixed in branch development |
Thanks! It compiles now. |
Yes, use espressif hardware gpio numbers, so 17 is correct |
Thanks again! |
Hey, thanks for this project.
I am new to IoT and C++ world (coming from JavaScript).
I need to use
Arduino Core v3.*
. When I use the followingplatformio.ini
, I get various errors reported by VS Code as well as the code does not compile.I thought I need to use
pioarduino IDE
extension instead of officialPlatformIO IDE
in VS Code. Therefore, I uninstalled the officialPlatformIO IDE
, deleted.platformio
folder, installed thepioarduino IDE
and let extension setup everything. But, it did not work.VS Code Intellisense shows the following errors:
When I try to compile using the build button, it logs (I have omitted many to keep it short):
It looks like I am not setting up things correctly, what is the correct way to use pioarduino?
Also, do I only need to use
pioarduino IDE
extension or it is optional?Do I only need to change
platform
field inplatformio.ini
?What are the requirements?
The text was updated successfully, but these errors were encountered: