|

Contact us
Sponsors
| |
Setting up WINavr to communicate with the SAMiAM controller board.
You know, it sounds so simple to setup the samiam interface with WINavr when
it's already done, but there are always little "tricks" which make life
miserable, so here is my step-by-step blog on how I setup the societies laptop
to communicate with the samiam and the atmel mega 8l using the dapa interface.
- Install WinAVR to the root of your C: drive.
You can
locate WinAVR from
http://winavr.sourceforge.net/download.html. The release I used
was WinAVR 20050214
Download this package and run the installation file.
When asked, drop it into C:\winAVR . It will also install a users
manual into WinAVR.
- Put in the makefile which
includes the DAPA interface instructions into the " C:winAVR\examples\demo\"
directory. The makefile is found at this link--->
MAKEFILE
You should rightclick on the makefile link ( above ) and save target
as... to the directory mentioned.
- Into the same directory, put in this simple sumo code
DEMO.C ( all files compiled with
this makefile must be called "demo.c")
- Copy this configuration file:
avrdude.conf over your
existing " C:\WinAVR\bin\avrdude.conf"
- Run the file c:\WinAVR\bin\install_givio.bat". This will allow
access to your computers parallel port from the programming software.
If things have gone smoothly so far, we should be ready to try downloading
something to the SAMiAM controller.
- Run "Programmers Notepad". It should be on your desktop, but will
also be in the START menu.
- Open demo.c
file -> open ->
c:\winavr\examples\demo\demo.c
- Compile demo.c
- Program the samiam
|