Arduino IDE 2.0
Arduino IDE 2.0
https://blog.arduino.cc/2021/03/01/anno ... -2-0-beta/
I've not tried it yet, but my assumption is that it will probably not work out of the box with this core unless by some miracle it's fully compatible with the original IDE's configuration files.
I've not tried it yet, but my assumption is that it will probably not work out of the box with this core unless by some miracle it's fully compatible with the original IDE's configuration files.
Re: Arduino IDE 2.0
it seemed to be evolved from the 'pro' ide
https://www.arduino.cc/pro/arduino-pro-ide
apparently it isn't made of java but rather typescript/javascript
https://github.com/arduino/arduino-ide
it seem to suggest where things are headed, it would be more of typescript/javascript based than java.
and quite likely would be more 'cloud' based.
https://www.arduino.cc/pro/arduino-pro-ide
apparently it isn't made of java but rather typescript/javascript
https://github.com/arduino/arduino-ide
it seem to suggest where things are headed, it would be more of typescript/javascript based than java.
and quite likely would be more 'cloud' based.
-
- Posts: 633
- Joined: Thu Dec 19, 2019 1:23 am
Re: Arduino IDE 2.0
Pipe Dream IMO:
I recommend staying with 1.8.13 until 2.0 is fully sorted... maybe even longer!
Also, an opinion, is that Oracle has destroyed JAVA in their fight with Google over Android. Javascript is a great move, but does require heavy browser-side quality testing with any browser code change within the Javascript interpreter.This new IDE was developed with the goal of preserving the same interface and user experience of the previous major version in order to provide a frictionless upgrade.
I recommend staying with 1.8.13 until 2.0 is fully sorted... maybe even longer!
Re: Arduino IDE 2.0
one could say it is 'evolved' from the cloud version (Arduino Create Web Editor)ag123 wrote: Tue Mar 02, 2021 4:36 pm it seemed to be evolved from the 'pro' ide
https://www.arduino.cc/pro/arduino-pro-ide
apparently it isn't made of java but rather typescript/javascript
https://github.com/arduino/arduino-ide
it seem to suggest where things are headed, it would be more of typescript/javascript based than java.
and quite likely would be more 'cloud' based.
https://create.arduino.cc/editor/
Re: Arduino IDE 2.0
IDE 2.0 shows that possibly Arduino is moving towards 'cloud' services, and that some of the future features may only be offered in paid 'cloud' services
they could in some ways compete with the likes of IFTTT cloudmqtt etc and offer commercial solutions (libraries?) which are not distributed open sourced
they could in some ways compete with the likes of IFTTT cloudmqtt etc and offer commercial solutions (libraries?) which are not distributed open sourced
Re: Arduino IDE 2.0
I downloaded and tried to code some encoder stuff onto a Nucleo L476 board.
Starting from a Arduino 1.8 installation with stm32duino I downloaded IDE 2.0 and started the new IDE.
After adding the the STM32Duino additional board manager path https://github.com/stm32duino/BoardMana ... index.json to the preferences and kicking the board manager twice the stm32duino boards were added to board selection and specific board fro board part number. After this build and upload was smooth.
My private changes to add extra board configurations was not recognized.
Debug worked using ST-Link 2 on Nucleo boards after selecting debug ( -g ) in optimize menu. Needed some work to add a launch.json config pointing to the actual build directory. I didnt record every step from scratch so cannot give good instructions but I managed to get debugging with breakpoints working.
Starting from a Arduino 1.8 installation with stm32duino I downloaded IDE 2.0 and started the new IDE.
After adding the the STM32Duino additional board manager path https://github.com/stm32duino/BoardMana ... index.json to the preferences and kicking the board manager twice the stm32duino boards were added to board selection and specific board fro board part number. After this build and upload was smooth.
My private changes to add extra board configurations was not recognized.
Debug worked using ST-Link 2 on Nucleo boards after selecting debug ( -g ) in optimize menu. Needed some work to add a launch.json config pointing to the actual build directory. I didnt record every step from scratch so cannot give good instructions but I managed to get debugging with breakpoints working.
Re: Arduino IDE 2.0
Would you mind to post the launch.json config?
Re: Arduino IDE 2.0
Code: Select all
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceRoot}",
"executable": "/var/folders/68/wh3qywr531q4dtp_nhmd79500000gm/T/arduino-sketch-8FF3BA12C82E02E56913B7E99FA3FA46/STM32F1_ADC_HAL_LL.ino.elf",
"name": "Debug Microcontroller",
"request": "attach",
"type": "cortex-debug",
"servertype": "stutil"
}
]
}
Code: Select all
Using library SrcWrapper at version 1.0.1 in folder: /Users/lundin/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/libraries/SrcWrapper
/Users/lundin/Library/Arduino15/packages/STM32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/arm-none-eabi-size -A /var/folders/68/wh3qywr531q4dtp_nhmd79500000gm/T/arduino-sketch-8FF3BA12C82E02E56913B7E99FA3FA46/STM32F1_ADC_HAL_LL.ino.elf
Sketch uses 57396 bytes (5%) of program storage space. Maximum is 1048576 bytes.
Global variables use 7476 bytes (5%) of dynamic memory, leaving 123596 bytes for local variables. Maximum is 131072 bytes.
--------------------------
Compilation complete.
Re: Arduino IDE 2.0
This is really useful, I was mucking about with cortex-debug trying to get it to work in vscode and figured I'd need to do something like this, but are you having to manually update the launch.json every time, is there not some way for arduino to pass in the current build folder in variable-ised form? I assume you're referring to vscode, can't imagine IDE 2.0 uses intellisense? EDIT - OK so I guess it does with them both being Theia based, anyhow same applies, surely there's some keyword that can be used to refer to the build directory.mlundin wrote: Wed Mar 17, 2021 9:15 pmThe path to the executable is grabbed from the last build output before loading the binary to the board.Code: Select all
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. "version": "0.2.0", "configurations": [ { "cwd": "${workspaceRoot}", "executable": "/var/folders/68/wh3qywr531q4dtp_nhmd79500000gm/T/arduino-sketch-8FF3BA12C82E02E56913B7E99FA3FA46/STM32F1_ADC_HAL_LL.ino.elf", "name": "Debug Microcontroller", "request": "attach", "type": "cortex-debug", "servertype": "stutil" } ] }
Code: Select all
Using library SrcWrapper at version 1.0.1 in folder: /Users/lundin/Library/Arduino15/packages/STM32/hardware/stm32/1.9.0/libraries/SrcWrapper /Users/lundin/Library/Arduino15/packages/STM32/tools/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/arm-none-eabi-size -A /var/folders/68/wh3qywr531q4dtp_nhmd79500000gm/T/arduino-sketch-8FF3BA12C82E02E56913B7E99FA3FA46/STM32F1_ADC_HAL_LL.ino.elf Sketch uses 57396 bytes (5%) of program storage space. Maximum is 1048576 bytes. Global variables use 7476 bytes (5%) of dynamic memory, leaving 123596 bytes for local variables. Maximum is 131072 bytes. -------------------------- Compilation complete.
Re: Arduino IDE 2.0
Looks like you can get the elf filename using a keyword, and can force the build dir in the arduino prefs - saves having to much about with the launch.json every time...
See here -> for some info https://gist.github.com/robotdad/7e573a ... 184141afaf
Whether this is transferable from vscode to IDE 2.0 I dunno.
I'll give it a try when I get chance.
See here -> for some info https://gist.github.com/robotdad/7e573a ... 184141afaf
Whether this is transferable from vscode to IDE 2.0 I dunno.
I'll give it a try when I get chance.