Articles Hierarchy

Articles Home » Arduino Projects » Arduino IDE 2.0 test on ESP

Arduino IDE 2.0 test on ESP

i already mentioned that i installed the new IDE 2.0
in my RPI PICO article:
just today find that IDE new v2.0:
i install on win10 PC:

( bad, in terminal ( monitor ) now need to press [space][ctrl][enter] instead [space] like in minicom )

The new IDE is based on the Eclipse Theia framework, which is an open source project based on the same architecture as VS Code (language server protocol, extensions, debugger). The front-end is written in TypeScript, while most of the backend is written in Golang.

to day check again on updates? download nightly but stuck on ( just download )
i do have (2.0.0-beta3-nightly)
but later try again and get ''

UPDATE 25.3.2021:
well, as expected they work on the arduino IDE about the tool chain and board-manager for Raspberry Pi PICO ( or other RP2040 boards )
goto preferences and add there ( if not empty after a ',' )
goto Board Manager and search 'rasp', find Raspberry Pi Pico/RP2040 and press [install] ( download board and tools ( about 170-MB ))
select the board
find already examples ( eeprom / led fade / servo sweep )


at start get a error ( having a sketchbook with many *.ino files open) i want follow and get surprisingly to
so Raspberry Pi AND Arduino, both change the coding environment to VSC???
i hate it but could be good for us?
and that help looks like for linux, here on windows it does not help me much.

ok, why i am here:
one of the questions is if that is compatible in the way that i still can install ESP too

-a- i want to know how the new IDE feels

-b- i want to know if i can setup a old ESP32 with the new IDE
and follow

-c- i want code some link like UART or I2C between ESP32 and PICO
( because ESP is 3V3 like the PICO and not need to worry the 5V of a arduino board when connect )

i install via board-manager

i have only a small collection of ESP:

use the NodeMCU 32S board v1.1 with the ESP WROOM 32

and start the monitor and my last project info come up MQTT

sofar that all looks good.

i even found the source code ( but not in the /myblog/ zip )
( there is only the ESP8266 OLED test ( like ESP8266_MQTT )
what comes up as PCU213 ( ) on my LAN
as MQTT client ( and show it all on OLED! )

is a version combining ESP32 and ESP8266 code and a compiler switch..
( not even remember if that specific test worked out )
sadly not even can compile it in IDE 2.0???
digging deeper later

for adding ESP8266 change in preferences:,
( you see, added with a ',' )
select new board managers entry ESP8266 and press install
select board .... full flash erase...
compile download ok,
NO OLED show

test with Arduino IDE same BUT there not see that error underlines like in the new IDE
anyhow the serial works and looks like its stuck in the setup and retry MQTT communication with master.
BUT why i see the good OLED show when i connect to power after all this years,
also without MQTT server? must have been a other code revision loaded?
but after first upload that OLED not work anymore?
anyhow the working environments are UP, ( only on win10 PC )
i added also a little more intro text in the code about the needed libraries.
so many tests about the OLED failed..
but main code loop runs, also a test of the default 8266 advanced webserver

in this picture see ( older IDE ) all of that many switches i needed for this board.
so, i have that OLED broken today? or the new software/libraries/settings are not compatible?
ok forget the OLED for today, work slowly towards my webserver ( like with fix IP .. ) again.
more to the original play there

now what i want to explore?
combine the PICO with a ESP board
-1- by UART / I2C /
-A- but possible also way back can use the ESP ( online ) as RTC source for the PICO
ok but first i try ESP8266 web Network Time to set/keep updated the local time ( even this has no RTC )
( but the PICO has a ?useless? RTC ( no extra battery supply possible? )
now if we can connect ESP and PICO ESP can send the required / actual Time settings with

-B- to use it as a WEB print output for the PICO
then start to run a simple web-server
+ + with fix IP

+ + show net-time and up-time

+ + with a line "hallo"
when you run the ardunio monitor can type / send text, and ( with auto update 5sec for webpage )
ESP show it ( via webserver ) instead "hallo"
this is message from USB line

+ + with a line "also hallo"
when the PICO send a text with a predefined header ? like "hallo from PICO"
via the UART1 wires
it will show like:
hallo from PICO

+ + when the PICO send a text in the style SVG commands like '.....'
via the I2C link ( i want to test with that )
that text will be included into a constructed HTM SVG image now shown as a ready rectangle
so with a single text line the PICO can draw a color rectangle 'bar-graph' like with the hight acc Ain reading..
( sounds like the old times when i wrote a dbase tool-set to send HP-GL to a HP-plotter LOL )

but instead just test the UART link between PICO UART and ESP-8266 UART i moved
the ESP project from PC also over to the RPI ( Arduino IDE with ESP environment, the old one, as the 2.0 now not available for arm 32 Raspberry Pi Linux) )
( might be too much current for RPI4 and its PS but i have the official ?5.1V 3.5A? PS so looks good )
but i do not have to worry about a ground connection RPI - PC USB...

when i try to do the same code for the ESP32 i run again into that one-hundred compiler-switches
where ESP32 and ESP8266 code is different.
AND ESP32 need :
UART special hardware serial setup
? must find new NTZ code ?
as that is unreadable UNDO the switch ESP8266 to ESP32

also get 'digdong' about the pin numbering / GPxx position...
now i try my own drawing here

first part on 'old' ESP / via WIFI / by browser on PC.

now back to the PICO ( on RPI4 VSC SDK.. ) and start from the advanced UART example
test a loopback ( jumper cable ) on UART 1: GP4 pin 6 TX, GP5 pin7 RX with that RX interrupt function
store to own char array and print when see '\n' works with BAUD_RATE 115200,
while when i tried to print each incoming character that speed failed...
and test:

well i got the ESP network time send to PICO RTC
and got the PICO ADC 0,1,2 send to ESP ( about 3 times per sec as CSV line)
and make it to SVG graph ( but update HTML only every 5 sec / manual refresh possible )


for a I2C communication see

back to the PC and start again with Arduino IDE 2.0,
try to update the PICO board ( even uninstall / install 0.9.4 )
build and upload the FADE example.. OK
but there are a few issues,
-a- the example menu shows ?badly? eeprom and fade ONLY
when i check the examples in GIT there are many more..
-b- other boards like feather... not show up...

recheck on IDE 1.8.13 much better from there.
try a update of IDE2.0?
ok find a
i must admit, possibly my working style is chaotic,
and at a time where a new IDE version is build and
a new board with very different tool set is incorporated,

better just to wait it out..