Maker Pro
Maker Pro

Is WINAVR crap or what?

R

Raveninghorde

Jan 1, 1970
0
Sheesh.

Never offer to help someone.

I've agreed to help my Bro in law on an ATMega C program tomorrow. I
mean how difficult can that be?

I've download the ATMega data and WINAVR. Installed WINAVR. OK how do
I compile a program? Not obvious. Look at the manual which starts with
a lot of irrelevant shite. Yeah, but how do I compile. Finally find
something about makefiles, how quaint.

OK look for how to run a make file. Nothing. Look at programmers
notepad, great a make all option. Error 2, no rule to make target.
Where to enter rule? Nowhere. Look at manual. Useless.

See note "Note
I HIGHLY RECOMMEND THAT YOU BECOME FAMILIAR WITH THE MAKE
PROGRAM AND WRITING MAKEFILES! PLEASE READ THE MAKE USER MANUAL!"

I don't want to learn about makefiles I want to compile a file. Why
should life be so difficult? Look for make user manual. Doesn't exist
as part of the install. No link to it from the WINAVR manual.

I've been at this nearly an hour and still can't compile a program.

Remind me to avoid any processor that requires WINAVR.
 
H

hamilton

Jan 1, 1970
0
Sheesh.

Never offer to help someone.

I've agreed to help my Bro in law on an ATMega C program tomorrow. I
mean how difficult can that be?

I've download the ATMega data and WINAVR. Installed WINAVR. OK how do
I compile a program? Not obvious. Look at the manual which starts with
a lot of irrelevant shite. Yeah, but how do I compile. Finally find
something about makefiles, how quaint.

OK look for how to run a make file. Nothing. Look at programmers
notepad, great a make all option. Error 2, no rule to make target.
Where to enter rule? Nowhere. Look at manual. Useless.

See note "Note
I HIGHLY RECOMMEND THAT YOU BECOME FAMILIAR WITH THE MAKE
PROGRAM AND WRITING MAKEFILES! PLEASE READ THE MAKE USER MANUAL!"

I don't want to learn about makefiles I want to compile a file. Why
should life be so difficult? Look for make user manual. Doesn't exist
as part of the install. No link to it from the WINAVR manual.

I've been at this nearly an hour and still can't compile a program.

Remind me to avoid any processor that requires WINAVR.

You must be trying to use WINAVR under linux.

If you are using it under wondoZe, then install AVRstudio.

AVRstudio handles all the IDE stuff for you.

hamilton
 
R

Rich Webb

Jan 1, 1970
0
Sheesh.

Never offer to help someone.

I've agreed to help my Bro in law on an ATMega C program tomorrow. I
mean how difficult can that be?

I've download the ATMega data and WINAVR. Installed WINAVR. OK how do
I compile a program? Not obvious. Look at the manual which starts with
a lot of irrelevant shite. Yeah, but how do I compile. Finally find
something about makefiles, how quaint.

OK look for how to run a make file. Nothing. Look at programmers
notepad, great a make all option. Error 2, no rule to make target.
Where to enter rule? Nowhere. Look at manual. Useless.

See note "Note
I HIGHLY RECOMMEND THAT YOU BECOME FAMILIAR WITH THE MAKE
PROGRAM AND WRITING MAKEFILES! PLEASE READ THE MAKE USER MANUAL!"

I don't want to learn about makefiles I want to compile a file. Why
should life be so difficult? Look for make user manual. Doesn't exist
as part of the install. No link to it from the WINAVR manual.

I've been at this nearly an hour and still can't compile a program.

Remind me to avoid any processor that requires WINAVR.

It's not a bad port of gcc and lots of people are enthusiastic users.
I'm not one.

Give the Imagecraft compiler a try. The full demo is time-limited to 45
days and then size-limited after that (non-commercial use). There's a
nice IDE and quite a few examples to get you started. I've been using it
commercially for quite some years.

http://www.imagecraft.com/
 
N

Nico Coesel

Jan 1, 1970
0
Raveninghorde said:
Sheesh.

Never offer to help someone.

I've agreed to help my Bro in law on an ATMega C program tomorrow. I
mean how difficult can that be?

I've download the ATMega data and WINAVR. Installed WINAVR. OK how do
I compile a program? Not obvious. Look at the manual which starts with
a lot of irrelevant shite. Yeah, but how do I compile. Finally find
something about makefiles, how quaint.

OK look for how to run a make file. Nothing. Look at programmers
notepad, great a make all option. Error 2, no rule to make target.
Where to enter rule? Nowhere. Look at manual. Useless.

See note "Note
I HIGHLY RECOMMEND THAT YOU BECOME FAMILIAR WITH THE MAKE
PROGRAM AND WRITING MAKEFILES! PLEASE READ THE MAKE USER MANUAL!"

I don't want to learn about makefiles I want to compile a file. Why
should life be so difficult? Look for make user manual. Doesn't exist
as part of the install. No link to it from the WINAVR manual.

I've been at this nearly an hour and still can't compile a program.

Remind me to avoid any processor that requires WINAVR.

I use Eclipse for whatever microcontroller I need to program. I even
wrote a wrapper around the Hi-tech PIC compiler so it behaves like GCC
to Eclipse.
 
T

tm

Jan 1, 1970
0
Joel Koltner said:
...or Google and ask around and read whatever documenetation you can find
until you figure it out...

I'd grant that the quality of documentation for free open-source tools is,
on average, not as good as that for commercial tools... but there's
certainly plenty of commercial tools out there with crap for documentation
as well.

Like windows.
 
A

Arlet Ottens

Jan 1, 1970
0
...or Google and ask around and read whatever documenetation you can
find until you figure it out.

I'd grant that the quality of documentation for free open-source tools
is, on average, not as good as that for commercial tools... but there's
certainly plenty of commercial tools out there with crap for
documentation as well.

google "winavr tutorial" brings up plenty of useful stuff, and so does
"winavr makefile example", and "winavr example project"

There's plenty of documentation, but you'll have to look for it.
 
R

Raveninghorde

Jan 1, 1970
0
I use Eclipse for whatever microcontroller I need to program. I even
wrote a wrapper around the Hi-tech PIC compiler so it behaves like GCC
to Eclipse.

I tried the Eclipse with Hi Tech PIC C. It deleted my project files
including source fand CAD files in the first hour (all backed up). I
didn't try it for a second hour.
 
R

Raveninghorde

Jan 1, 1970
0
...or Google and ask around and read whatever documenetation you can find
until you figure it out...

I'd grant that the quality of documentation for free open-source tools is, on
average, not as good as that for commercial tools... but there's certainly
plenty of commercial tools out there with crap for documentation as well.

Funnily enough I feel software should be easy to use and if you need
instructions to do the basics then it's bad software.
 
R

Raveninghorde

Jan 1, 1970
0
winavr is a compiler, why should it tell you how to write makefiles?
it doesn't tell you how to program either

I don't want to write makefiles, so 1980s.

It has an editor with a make all function. But it gives an error
because it can't make. I didn't find how to make it make. That is
crap.
if you want an example makefile, download something made with winavr.
could try something like: http://fab.cba.mit.edu/content/projects/fabisp/

I used the mfile program to make a make file but programmers notepad
doesn't seem to want to use it.
 
R

Raveninghorde

Jan 1, 1970
0
You must be trying to use WINAVR under linux.

If you are using it under wondoZe, then install AVRstudio.

AVRstudio handles all the IDE stuff for you.

hamilton

Downloading...
 
A

Arlet Ottens

Jan 1, 1970
0
Funnily enough I feel software should be easy to use and if you need
instructions to do the basics then it's bad software.

With gcc+make there's a certain learning curve for the basic stuff, but
on the other hand, in return you get a tremendous flexibility to do more
complicated stuff.

If you set it up properly, a single "make" command can produce 6
different versions of your software, burn the software into a device, run
an automatic regression test, update the documentation, and copy the
installation files to your website, as well as anything else that you
want.

With an easy to use integrated environment where you can compile a
program in 1 click, that's sometimes the only thing you can do.
 
N

Nico Coesel

Jan 1, 1970
0
Raveninghorde said:
I tried the Eclipse with Hi Tech PIC C. It deleted my project files
including source fand CAD files in the first hour (all backed up). I
didn't try it for a second hour.

RTM. Eclipse really beats any IDE I've used hands down so far.
 
P

petrus bitbyter

Jan 1, 1970
0
Raveninghorde said:
Sheesh.

Never offer to help someone.

I've agreed to help my Bro in law on an ATMega C program tomorrow. I
mean how difficult can that be?

I've download the ATMega data and WINAVR. Installed WINAVR. OK how do
I compile a program? Not obvious. Look at the manual which starts with
a lot of irrelevant shite. Yeah, but how do I compile. Finally find
something about makefiles, how quaint.

OK look for how to run a make file. Nothing. Look at programmers
notepad, great a make all option. Error 2, no rule to make target.
Where to enter rule? Nowhere. Look at manual. Useless.

See note "Note
I HIGHLY RECOMMEND THAT YOU BECOME FAMILIAR WITH THE MAKE
PROGRAM AND WRITING MAKEFILES! PLEASE READ THE MAKE USER MANUAL!"

I don't want to learn about makefiles I want to compile a file. Why
should life be so difficult? Look for make user manual. Doesn't exist
as part of the install. No link to it from the WINAVR manual.

I've been at this nearly an hour and still can't compile a program.

Remind me to avoid any processor that requires WINAVR.

Similar with the TI MSP430 Launchpad. Been busy over an hour installing
software and reading manuals. Only got the demo running but still no way to
recompile it. Still will not give up but for the moment I cannot spent to
much time.

petrus bitbyter
 
R

Raveninghorde

Jan 1, 1970
0
AVR Studio with the Gnu toolchain works fine, and is free.

Cheers

Phil Hobbs

AVR studio up and running in minutes.

Outstanding issues are with the differences between HiTech C and
WINAVR.

Having to use fdevopen to tie putch to printf makes sense but not
needed for the PIC. But having to put a dummy argument in putch to
make the compiler happy?

At least with printf running I can start debugging.
 
A

Arlet Ottens

Jan 1, 1970
0
AVR studio up and running in minutes.

Outstanding issues are with the differences between HiTech C and WINAVR.

Having to use fdevopen to tie putch to printf makes sense but not needed
for the PIC. But having to put a dummy argument in putch to make the
compiler happy?

The stream argument isn't always a dummy argument. You could have 2 UART
ports, and a single uart_putc() function that uses the stream parameter
to determine which port to send the data to.
 
H

hamilton

Jan 1, 1970
0
AVR studio up and running in minutes.

Not bad for FREE !
Outstanding issues are with the differences between HiTech C and
WINAVR.

Having to use fdevopen to tie putch to printf makes sense but not
needed for the PIC. But having to put a dummy argument in putch to
make the compiler happy?

At least with printf running I can start debugging.

Glad to hear that you got something working.

Now you can focus on your project and not worry about the compiler.

Which ATmega are you using ?

hamilton
 
R

Raveninghorde

Jan 1, 1970
0
Not bad for FREE !


Glad to hear that you got something working.

Now you can focus on your project and not worry about the compiler.

Which ATmega are you using ?

hamilton

ATMega8A.

I'm providing my Bro in law with remote support on his project, I've
not even seen the target system. Weather has stopped me going over to
help in person. Thank god for webcams and the internet.
 
H

hamilton

Jan 1, 1970
0
Not for me. I had trouble with AVR Studio 4 on XP, along with many
other programs.
But I don't care, WinAVR and Makefile work fine for me.


At90USB162/Atmega32u2/At90usb646.

I have seen that you (linnix) know about ATmegas.

I was wondering about what Raveninghorde might be using.

It seems that getting a project (product) running gets lost in the
choice of tools.

For as long as WINAVR and AVRstudio have been around, it would seem that
more people would know about it.

makezine.com has lots of hits using this combination.

FREE is good. ;-)

hamilton
 
H

hamilton

Jan 1, 1970
0
ATMega8A.

I'm providing my Bro in law with remote support on his project, I've
not even seen the target system. Weather has stopped me going over to
help in person. Thank god for webcams and the internet.

Thanks for the info.

hamilton
 
R

Raveninghorde

Jan 1, 1970
0
Not bad for FREE !


Glad to hear that you got something working.

Now you can focus on your project and not worry about the compiler.

Which ATmega are you using ?

hamilton

I've been googling and I am getting conflicting info.

Char is 8 bit
short 16 bit
int ? bit
long 32 bit

I'm seeing int defined as both 16 and 32 bit and in one place int not
used at all just short and long.

I've seen int as 8 bit and 16 bit on the PIC.

So in WINAVR what size is int?
 
Top