build usb interface
build usb interface
hello
I wanna know what are the differents steps to build an usb interface with obdev firmware. Firstly i must build an bootloader with the AT902313 and it's here that I need help, i must load the firmware with witch software ? and if I wanna modify the firmware how can I make ?
I wanna know what are the differents steps to build an usb interface with obdev firmware. Firstly i must build an bootloader with the AT902313 and it's here that I need help, i must load the firmware with witch software ? and if I wanna modify the firmware how can I make ?
First you need an AVR programmer. If your computer has a serial or parallel port (not USB adapters!), then you can build one of the simple programmers consisting of wire connections only.
If your computer has USB only, build USBasp, a simple USB programmer. You still need another programmer for this first AVR, though.
Once you have a programmer, you can build your target hardware. If you don't want to use the programmer every time to flash new firmware, put a bootloader on the target. The bootloader is a kind of integrated programmer -- the target programs itself. Most bootloaders take up 2k of the target's flash.
If your computer has USB only, build USBasp, a simple USB programmer. You still need another programmer for this first AVR, though.
Once you have a programmer, you can build your target hardware. If you don't want to use the programmer every time to flash new firmware, put a bootloader on the target. The bootloader is a kind of integrated programmer -- the target programs itself. Most bootloaders take up 2k of the target's flash.
I would recommend that you build USBasp, since it's simple. You could consider the metaboard variant at http://metalab.at/wiki/Avrprog-metaboard because it has programming sockets.
You still have to flash your first AVR with other means, though. I'd recommend a simple parallel port programmer on a desktop PC for this purpose.
You still have to flash your first AVR with other means, though. I'd recommend a simple parallel port programmer on a desktop PC for this purpose.
If I have understand before to build USBasp I need to build an programmer for the parallel port witch program the AVR and it's after that than I will can put the AVR on the USBasp board , and it's on the parralel programmer that I put the firmware on the AVR and it's with WINAVR that I can compile the firmware ? and with AVR DUDE I drive USBasp ??
Regarding the previous question: You need the parallel port programmer only ONE TIME, when you program the AVR for your USB based programmer. Once that is done, you use USBasp on the USB port and no parallel port is needed any more.
Regarding application development please see various examples on the net.
Regarding application development please see various examples on the net.