Feedback wanted on a basic tutorial.

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi

I kind off wrote a little tutorial about hello world :roll: but gave it a little twist with ncftpput and telnet thru a perl script... and with the Makefile as the red line.

The tutorial in the wiki:
https://www.avrfreaks.net/wiki/index.php/Documentation:Tutorials_Hello_world_on_NGW100_built_on_Ubuntu

What do you think off the perl telnet thing?
And do you have any other funny little "hacks" that can make life easier?

BR
Johan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey, thanks! A few comments:

Quote:
I know this is an Ubuntu-specific tutorial, but it'd really be worth highlighting exactly _which_ bits are Ubuntu-specific so everyone can use it.
Quote:
And the short version off that page is

avr32-linux-gcc -pipe -O2 -g -Wall -D_GNU_SOURCE -c -o hello.o hello.c
avr32-linux-gcc -pipe -O2 -g -Wall -o hello hello.o

A shorter one is just

avr32-linux-gcc -o hello hello.c ;-).

This has symmetry with the host build line too, hopefully meaning people won't think that a cross-build _has_ to be more complex.

Quote:
Cool idea, I like it. Once again, this isn't Ubuntu-specific so making the whole turorial more everyone-friendly would be cool.

As a more general thing, there are a lot of Hello-world tutorials out there. They're all linked from different places and I reckon yours is the first linked from the right place! That is, from the main page as they shouldn't be ngw100-specific. Just as useful as your new howto is a bit of a purge/reorgainization of the old one. I've been meaning to do it for a while, I'd love it if you beat me to it ;-)

Thanks again, nice :-)
-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well now that you mention it, most parts are quite general and should be easily applicable on most other civilized platforms 8)

I mean you install the tool chain in some different ways, but then you use it nearly the same.

You can install ncftp and perl on most platforms, so with some work it could work on Windows as well (under cygwin),
but it is harder.
And one off my point is to try to show that it is quite easy nowadays if you do it right.

Then it should be the same even if you use the other AVR32 AP7xxx cards, but I can't verify that since I don't have that hardware :(

Quote:
As a more general thing, there are a lot of Hello-world tutorials out there.

A start could be to have the links in the same place.

BR
Johan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jsiei97 wrote:
Well now that you mention it, most parts are quite general and should be easily applicable on most other civilized platforms 8)

I mean you install the tool chain in some different ways, but then you use it nearly the same.

Yup, and there's already a set of per-distro instructions up regarding it; just point at these :-) https://www.avrfreaks.net/wiki/in...
jsiei97 wrote:
You can install ncftp and perl on most platforms, so with some work it could work on Windows as well (under cygwin),
but it is harder.
And one off my point is to try to show that it is quite easy nowadays if you do it right.
Indeed, appreciate it! Come to think of it, it might also be worth a line why you'd use ncftp rather than just, eg, GNU ftp.
jsiei97 wrote:

Then it should be the same even if you use the other AVR32 AP7xxx cards, but I can't verify that since I don't have that hardware :(
Yup, though hopefully people are smart enough to put 2+2 together there if they've got any other platform.
jsiei97 wrote:
Quote:
As a more general thing, there are a lot of Hello-world tutorials out there.

A start could be to have the links in the same place.

A good start, yeah. If you've got a sec to hunt them all done and link them from the front page where you've got yours linked from, that'd ease cleanup efforts later.

Thanks again,
-S.