Re: Microcontrollers, USB and Linux



On Fri, 28 Dec 2007 12:56:56 +0100, Joost Leeuwesteijn
<joost@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:


What's a good architecture for simple embedded/microcontroller software
development (in C) _under Linux_, with respect to the toolchain (C
cross-compiler, assembler, linker, etc.); nativly without using things
like Wine) ?

AVR is. gcc is available, isp downloading is available, JTAG is.

Background info:

I would like to develop a _simple_ and low-cost microcontroller hard-
and software platform for study/training purposes, for my colleagues

Ok, you want AVR. It's simple and easy to learn and to work with, everything
is documented, and there is a large community. And all tools are free.

I would like to use/program USB directly so no FTDI converter IC's to
simulate RS232 ports (What's the point of USB anyway when the first
thing you do is simulate RS-232? Just the option of using a USB hub?).

There are several AVR controllers with native USB built-in, but none in DIP
(32 or 64 pin QFN/QFP).
There is is also a protocol stack available for free that implements
mass-storage, HID, CDC, ...
However, you can always get conversion boards for breadbording, like this
for example:

http://www.reichelt.de//bilder/blaetterkatalog_hk01-2008/index.html?startpage=280

If you need larger numbers (maybe for students etc), you'd better go to a
layout service for a custom board, at best with USB, ISP, and JTAG
connectors and the 16 MHz crystal. The design would take half a day, and
manufacturing these boards in quantities would be cheaper than using these
universal adapter boards.

The Microchip PIC 18F4550 looks great, and only costs a few dollars, but
I don't believe it's possible to develop under Linux (in C), or is it?
The SDDC site says "under construction" for PIC support. The PIC seems
to be the only one that supports USB on a DIP package though...

I'm not aware of a real good compiler under Linux, and I'd avoid PIC. It's a
brain-dead architecture with limited capabilities (RAM bankswitching, 4k
architectural RAM limitation,...)


Mit freundlichen Grüßen

Frank-Christian Krügel
.



Relevant Pages

  • HIGHMEM slows down 2.6.11-rc3-bk7 machine
    ... disabled in BIOS, mainly USB/NET/FIREWIRE/SATA stuff. ... Linux agpgart interface v0.100 Dave Jones ... usbcore: registered new driver hub ... ehci_hcd 0000:00:1d.7: new USB bus registered, ...
    (Linux-Kernel)
  • Unable to mount sitecom cn300 multi memory card reader.
    ... But in dmesg I can't find this line "scsi0: SCSI emulation for USB Mass ... The distribution I use is SuSE 8.2 (kernel 2.4.20-4GB). ... Reader/Writer under Linux. ... HiSax: Linux Driver for passive ISDN cards ...
    (alt.os.linux.suse)
  • Re: A hobbyists viewpoint, was: Re: Who is working with the SAM9263?
    ... US$500 for the first development board, but after that if they made ... baseboard to take out the rest of the signals from the module. ... which has the Ethernet and USB connectors. ... Ulf may like to know that the _only_ reason that I don't use AVR ...
    (comp.arch.embedded)
  • Re: wireless keyboard with built in touchpad
    ... > Ordinary usb mice work fine, including when indirectly connected via hubs. ... It partially works on Linux. ... usbcore: registered new driver hiddev ... no one has claimed their $150 wireless keyboard. ...
    (freebsd-current)
  • Re: Ive had it up to here with Vista
    ... Monitor out of range...OK so it doesn't recognize my ... Or the touchpad does, but not the ... WELL then I wonder where's the sound---seems that in Linux I can only use ... I try my USB soundcard and lo and behold, ...
    (alt.guitar)