Tuesday, February 23, 2010

Problems with Vista64 - For USBasp programmer installation

I think now a days as serial and parallel ports are no more in use....with all programmers using laptops... USB AVR programmer is the most sorted for...
I have purchased the same from internet and faced following issues before i could properly get it installed...
Ok let me go one by one

Vista 64 bit: If this is your OS then boss you got to do many things before you start your actual programming.
As you know AVR Studio; WinAVR; Ponyprog are the tools that are used for programming an AVR MCU, we get compilation problems with WinAVR in Vista 64.
Pls click here to get you to the post regarding the same.

Then comes the part where you have to install drivers to recognize your USB programmer.
There are drivers provided in the kit that you buy, but most often its likely that they dont give the drivers for Vista 64.
So pls download the drivers from the below link for Vista 64
http://www.protostack.com/download/USBasp-driver-0.1.12.2.zip

Once you download connect your USB programmer and direct the hardware installation wizard to the path where you have downloaded the driver and install the same.
And when you install the same you may encounter erros saying that digital signature is required and so and so.
Pls go with the option of install it any way.
Then go to the device manager in Control panel. You can see that USBasp is installed but will have a yellow triangle indicating that its not properly installed.
Do nothing now.
Reboot the system and press F8 before its starts. You will find an option where you can "Disable driver signature enforcement". Once the computer starts check for the device manger and you will see that the yellow triangle disappeared.
This indicates that boss you have successfully installed USBasp driver in order to recognize your programmer.

Here is the link of the vendor where i bought the USB AVR programmer.
http://extremeelectronics.co.in/

Enjoy programming!!!! :) :)

Sunday, February 21, 2010

DRDO sets up a platform for Students to build Machines infact heavy robots

Hi All,
DRDO hosts a competition for the students in Engineering to build a heavy robot that could transit in all possible surfaces and hurdles..
The event also has attractive cash prizes...
Check out in the below URL
http://www.drdo.gov.in/scomp2010/index.html

WinAVR vs Vista 64bit

Hi Friends,
I faced some problem in compiling a c code that i wanted to dump into the Atmel Atmega8 MCU.
When i ran the basic simple code in my Vista 64 bit lappy.
It throws an error as below

"make.exe" all
0 [main] sh 3792 sync_with_child: child 1880(0x11C) died before initialization with status code 0x0
38726 [main] sh 3792 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
0 [main] sh 6668 sync_with_child: child 5760(0x120) died before initialization with status code 0x0
34379 [main] sh 6668 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable

-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling C: main.c
avr-gcc -c -mmcu=atmega8 -I. -gstabs -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./main.lst -std=gnu99 -MMD -MP -MF .dep/main.o.d main.c -o main.o
main.c:13: fatal error: opening dependency file .dep/main.o.d: No such file or directory
compilation terminated.
make.exe: *** [main.o] Error 1

> Process Exit Code: 2
> Time Taken: 00:01

I posted this in forums and searched in google and found the solution.
There is a .dll file in \utils\bin folder of your WinAVR install folder with name "msys-1.0.dll"
which we have to replace with the file in the following path

There ends the problem. :) :) :)