Advantage of Arduino

Dear dxw00d ,
Thanks for reply
Could you please Let me know the different between sketch and HEX file
Thanks in advance

Dear All,
1.I wrote the program as attached picture and compiled well

2.sketch was generated as attached picture
3.Then I uploaded sketch file to Arduino simulator
4 The error message was generated as attached picture
Please advice

ar2.JPG

Could you please Let me know the different between sketch and HEX file

A sketch is your source code.
The hex file is the compiled version of your sketch, ie translated from C/C++ to machine code for the AVR processor.

Can I have the solution for my last question

That's not an Arduino error message.

I think much of this discussion suffers from the lack of terms for certain items.
I've brought this up a few times in the past.
For example what does "Arduino" mean?
While accurate, people may get a strange look on their face when you say something like:
I used Arduino to program my Arduino with a program written in Arduino.

And that is the problem. There are no separate terms to refer
to the individual components such as the IDE, the tools, the board, the bootloader, the chip, the "language".
Because of this, people tend to throw around the term "Arduino" and yet it can mean different things to
different people.

To me, this makes things very difficult to have a discussion like the one occurring in this thread.

Much of the ease of use with respect to "Arduino" has very little to do with the Atmels AVR
or AVR architecture.
It is the GUI tools and libraries, documentation, examples etc, and most of that is in no
way tied to AVR.
In a sense it is the easy to use eco system around a pre-built board,
rather than any sort of specific chip or board that
makes "Arduino" a good fit for many people, including people with no embedded programming
experience.

Because the s/w eco system is open source and in no way tied to AVR, it has been ported and is now available
for use on non AVR based processors. ARM, and pic32 based boards now both have "Arduino" IDEs and "Arduino" core
libraries available for them.

So to me the Arduino vs non Arduino argument doesn't have anything to do with AVR but rather whether
or not to use the "Arduino" eco system or not. And the "Arduino" eco system includes, boards, shields, s/w libraries,
an IDE to build the code and documentation with support forums to tie it all together.

More advanced users can selectively pick and choose which of the various components of that eco system to use
and not have to use them all.

I do think that for advanced users with lots of embedded development experience,
there can be many issues and frustrations with the IDE and the build methodology, but then
the Arduino s/w is not really aimed at them.

I just wish there were some established terms to refer to the specific components within the eco system to
make discussions like this easier, as to me right now there are just too many things all called "Arduino".

--- bill

All that is very well argued and there is very little with which I would disagree, but the fact remains that an nth party simulator is producing an error message.
The OP would be better off asking whoever supports that simulator what the message means.

Advantage of Arduino

Arduino's biggest advantage is that it allows a user to code without looking at the datasheet;

Arduino's biggest disadvantage is that it allows a user to code without looking at the datasheet.

Have you been reading Oscar Wilde, dhenry?

The only thing worse than being talked about is not being talked about.

dhenry:

Advantage of Arduino

Arduino's biggest advantage is that it allows a user to code without looking at the datasheet;

Which is a key to allow newcomers to programming and electronics to be productive much quicker on actually accomplishing something with their Arduino projects. They don't need a datasheet to master making some leds blink as they wish, and to many that is a goal worth reaching before having to mastering reading datasheet.

Arduino's biggest disadvantage is that it allows a user to code without looking at the datasheet.

As newcomer's project become more complex and ambitious they will come to understand the need to learn about datasheets and they will be more motivated because they have an immediate need to.

Why make the entry cost in time and learning effort so high as to have many give up in frustration? The Arduino is about enabling ordinary people to do stuff quickly and easily and build upon early successes.

Yes, I got started without reading the datasheet. Then when I wanted to do something complex, I read it. So it isn't a huge worry.

bperrybap:
I think much of this discussion suffers from the lack of terms for certain items.
I've brought this up a few times in the past.
For example what does "Arduino" mean?
While accurate, people may get a strange look on their face when you say something like:
I used Arduino to program my Arduino with a program written in Arduino.

And that is the problem. There are no separate terms to refer
to the individual components such as the IDE, the tools, the board, the bootloader, the chip, the "language".
Because of this, people tend to throw around the term "Arduino" and yet it can mean different things to
different people.

To me, this makes things very difficult to have a discussion like the one occurring in this thread.

Much of the ease of use with respect to "Arduino" has very little to do with the Atmels AVR
or AVR architecture.
It is the GUI tools and libraries, documentation, examples etc, and most of that is in no
way tied to AVR.
In a sense it is the easy to use eco system around a pre-built board,
rather than any sort of specific chip or board that
makes "Arduino" a good fit for many people, including people with no embedded programming
experience.

Because the s/w eco system is open source and in no way tied to AVR, it has been ported and is now available
for use on non AVR based processors. ARM, and pic32 based boards now both have "Arduino" IDEs and "Arduino" core
libraries available for them.

So to me the Arduino vs non Arduino argument doesn't have anything to do with AVR but rather whether
or not to use the "Arduino" eco system or not. And the "Arduino" eco system includes, boards, shields, s/w libraries,
an IDE to build the code and documentation with support forums to tie it all together.

More advanced users can selectively pick and choose which of the various components of that eco system to use
and not have to use them all.

I do think that for advanced users with lots of embedded development experience,
there can be many issues and frustrations with the IDE and the build methodology, but then
the Arduino s/w is not really aimed at them.

I just wish there were some established terms to refer to the specific components within the eco system to
make discussions like this easier, as to me right now there are just too many things all called "Arduino".

--- bill

Bill -
Arduino means all those things. As in all language, context is everything. The board is an Arduino board (of which there are several versions, using several realted, but different processors.) Arduino is also the Arduino IDE which is where you load Arduino sketches to compile and transfer them to the Arduino Board. WHat is meant by a given use of the word - Arduino - is dependent an on context.

The Arduino environment is a gret way to get started and to test things out. It might be great for producing finished code, or the ATMel AVR Studio might be better. The Arduino IDE is well integrated and has quite a bit of knowledge rattling around on the web and most questions can be answered rather quickly (quickly is relative, especially when you just figured out the problem, but have no clue as to a solution...) and lets you program in C. AVR Studio will also let you program in C, but I used it to do a little programming in Assembly. Faster, Tighter code, but less help from the web.

Ans as in anything, the initial learning curve can be a bit steep. Some of that will depend on your background and some on age. I am 54 years old, but I have a background in programming from the days of the Z80. The learning curve was a bit less steep and I had a few clues about what questions to ask. A different background and that initial learning curve can look a lot different. Biggest thing is to learn how to phrase the question. (I use AutoCad. If you don't already have an idea about the tool you want to use, you spend a lot of time just figuring out what tool to ask about. Once you know what the tool name is most of the questions are answered...) Read some and try some things and ask some questions. Someone will probably have been trying something similar and will be able to help you figure out what the question really is. Most of learning is just figuring out the questions.

Of course, the day when questions like "I'm not using an actual Arduino board, or the actual Arduino IDE, or an AVR processor. Why doesn't my program work?" start to outnumber the actual "Arduino" questions, will be a sad one.

Dear All,
46 post already pass on this thread but my problem remaining unchanged

Please advice

What is the problem? (48)

duinopad:
Dear All,
46 post already pass on this thread but my problem remaining unchanged

Please advice

You have been advised. That error is not being generated from the Arduino IDE program, but rather it's an error from some 3rd party PC based AVR simulator program. There very well be no one on this forum that has used that simulator so it's hard to help you with whatever that error means. Have you attempted to contact the supplier of the simulator program about the error you are getting?

Lefty

duinopad:
Please advice how may I load the compiled file (HEX) to simulator. where the HEX file is generated

I haven't used the simulator. I prefer to work with real microprocessors. However I went to their web site and there is extensive documentation. Without seeing what you did, I don't know if you followed it.

I suggest you post to their site, or forum, as this is really nothing to do with the (real) Arduino. It's to do with a bit of software that emulates Arduinos.

You have been advised. That error is not being generated from the Arduino IDE program, but rather it's an error from some 3rd party PC based AVR simulator program. There very well be no one on this forum that has used that simulator so it's hard to help you with whatever that error means. Have you attempted to contact the supplier of the simulator program about the error you are getting?

Lefty

Dear Lefty,
Thanks for the reply

I simulated sample code provided by Arduino (Blink), so it is running very well, then I wrote the same program and compiled and load the sketch to the same simulator, unfortunately the above error was encountered .

What will be the next,
Please help
Thanks in advance

What is the problem? (48)

Could you please find the my post (35).
Thanks in advance

Your problem is with the simulator program. You need to go here for help http://forum.arduino.com.au/

We would like to help you but, this site is primarily for the Arduino and software on this site.

It is confusing because the simulator site has a very similar name to this site.