Arduino IDE 2.0

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
BennehBoy
Posts: 135
Joined: Sat Jan 04, 2020 2:38 am
Answers: 1

Arduino IDE 2.0

Post by BennehBoy »

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.
ag123
Posts: 1653
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Arduino IDE 2.0

Post by ag123 »

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.
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: Arduino IDE 2.0

Post by mrburnette »

Pipe Dream IMO:
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.
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.

I recommend staying with 1.8.13 until 2.0 is fully sorted... maybe even longer!
User avatar
Juraj
Posts: 47
Joined: Fri Jan 03, 2020 7:47 pm
Answers: 1
Location: Slovakia
Contact:

Re: Arduino IDE 2.0

Post by Juraj »

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.
one could say it is 'evolved' from the cloud version (Arduino Create Web Editor)
https://create.arduino.cc/editor/
ag123
Posts: 1653
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Arduino IDE 2.0

Post by ag123 »

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
mlundin
Posts: 94
Joined: Wed Nov 04, 2020 1:20 pm
Answers: 6
Location: Sweden

Re: Arduino IDE 2.0

Post by mlundin »

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.
Username:
Posts: 6
Joined: Thu Mar 05, 2020 11:07 am

Re: Arduino IDE 2.0

Post by Username: »

Would you mind to post the launch.json config?
mlundin
Posts: 94
Joined: Wed Nov 04, 2020 1:20 pm
Answers: 6
Location: Sweden

Re: Arduino IDE 2.0

Post by mlundin »

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"
    }
  ]
}
The path to the executable is grabbed from the last build output before loading the binary to the board.

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.
BennehBoy
Posts: 135
Joined: Sat Jan 04, 2020 2:38 am
Answers: 1

Re: Arduino IDE 2.0

Post by BennehBoy »

mlundin wrote: Wed Mar 17, 2021 9:15 pm

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"
    }
  ]
}
The path to the executable is grabbed from the last build output before loading the binary to the board.

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.
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.
BennehBoy
Posts: 135
Joined: Sat Jan 04, 2020 2:38 am
Answers: 1

Re: Arduino IDE 2.0

Post by BennehBoy »

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.
Post Reply

Return to “IDE's”