Go Down

Topic: Trying to set up different IDE for code development (Read 711 times) previous topic - next topic

Justin_AB

Jun 18, 2019, 05:14 pm Last Edit: Jun 18, 2019, 05:32 pm by Justin_AB
Hey guys, the Arduino IDE is simple and all, but it can be too simple. No autocomplete, no spell check on verribles, and most of all no error checking and debugging features.

TLDR I want something better.

I tried to setup Eclipse with THIS TUTORIAL but while I was able to include external libraries I was having issues trying to use internal libraries and couldn't really find where I would add the paths to the arduino folders.

Next I tried to use Visual Studio Code with THIS TUTORIAL and I was able to get most internal and external libraries working, but even after double checking the file path in the c_cpp_properties.json file it refuses to find the Arduino.h library (a rather important one. Actually it can open arduino.h just fine, but it "cannot open source file "pins_arduino.h" (dependency of "Arduino.h")"

I was able to get pins_arduino.h working just by downloading the pins_arduino.h from the github repo and adding it to the \Arduino\hardware\arduino\avr\cores\arduino, but now I am having a problem where "identifier "Serial" is undefined" Guess it's time to work that out.

If anybody could help me out with one of these, or if you could recommend another program that would be great.

Thanks!

Juraj

I use this https://eclipse.baeyens.it/. It is for Eclipse and uses the Arduino builder and boards packages
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

PaulS

Quote
no spell check on verribles
I can see why you would need a spell checker...
The art of getting good answers lies in asking good questions.

Juraj

I can see why you would need a spell checker...
it is perfect for comments and strings, but OP meant the errors and warnings highlighting, I think

You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Robin2

and most of all no error checking and debugging features.
That is a function of the limited capability of the Atmega chips used in Arduinos. Changing your IDE is not going to solve it.

I use the Geany editor for all my programming. I did try Eclipse years ago but found it much too complicated.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Juraj

That is a function of the limited capability of the Atmega chips used in Arduinos. Changing your IDE is not going to solve it.

I use the Geany editor for all my programming. I did try Eclipse years ago but found it much too complicated.

...R

I can step debug and see current variable values for SAMD in Eclipse
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Robin2

I can step debug and see current variable values for SAMD in Eclipse
Yes. But not for an Uno or Mega

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Juraj

Yes. But not for an Uno or Mega

...R
for Mega
https://forum.arduino.cc/index.php?topic=191302.0
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Robin2

for Mega
https://forum.arduino.cc/index.php?topic=191302.0
Interesting. Thanks.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Juraj

Interesting. Thanks.

...R
328p has something called debugWire over reset pin. maybe the Atmel Studio supports it
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Justin_AB

I was more thinking about debugging in the code itself, have the code point out stuff like if(var1 = var2) and underline it. I get that all you can really do for real time debugging is add a ton of println statements until you find out what part of your code gives an unexpected response.

Juraj

I was more thinking about debugging in the code itself, have the code point out stuff like if(var1 = var2) and underline it. I get that all you can really do for real time debugging is add a ton of println statements until you find out what part of your code gives an unexpected response.
did you read all comments?
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Go Up