At first I thought it was a Windows problem, so I tried on my father's XP laptop. Same result.
Now I think there is a problem with the serial cable. But the DTR works perfect (LED13 blink when I try to upload a code indicating that the DTR pin worked)(I put LED on both RX and TX pin and there is no blink, which indicates that there are no traffic going through).
Now what is the problem. I'm in a dead end !!!
I want to buy an arduino but building one is 50% cheaper !!
Sorry I can't upload my board picture. FYI it is assembled on a prototype board (bread board). I planned to make my own PCB after all things worked perfectly.
I hope I gave enough information for you guys to help me.
What cable? Some cables can't work at the baud rate the the boot loader switches into when downloading programs. I have a few USB / Serial adapters and cables that are good for communication but won't download code.
I dunno what cable.
It's just a normal USB-Serial cable.
Would there be any difference if I buy a Serial PCI Card ??
If can I want to avoid buying a USB breakout board cause buying one would be half the price of an Arduino and full price of my BBArduino.
It is very expensive. I dunno if it is cheap to you guys but it is very expensive here in Malaysia.
Well actually I wired the DTR directly to the cap and into PIN1.
Not sure what you mean but the DTR should go only to the capacitor. The other end of the capacitor should go to the reset pin which should be pulled up to +5 with a 10K resistor.
So when I tried to upload a code, the LED blinks and that I got the error.
The LED blinking is the result of the last sketch being executed.
The error is because the system did not get the response off your board that it was expecting, so you have many things right but something is still wrong. I am assuming you have no test equipment, that makes it trick finding out your mistake.
You need to check:-
1) Is data being sent to your processor? You could attach an LED and resistor to the RX pin of the processor and see if data is being received.
2) Is data being sent back from your processor to the computer? Open up the serial monitor or other terminal device and press the reset button. Do you see something being received. You might have to change the baud rate to see something.
3) Is the auto reset happening at the right time. Again an LED and resistor (1K) should tell you if this line is changing when the upload icon is clicked.
Now, when I press the reset button, the LED won't blink.
Then, I got this error
"java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver"
What the hell ?
Oh yeah , I did put a LED on the RX and it did blink, just a couple of times. It is dim.