Programming Woes

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It seems that in my trip into the world of AVR I am to be tripped by many potholes.

I'm using PonyProg with a parallel port dongle [connector + resistors] and up till now it was working. Unfortunately while I was doing some disk cleaning I trashed the director where I had PonyProg installed [I deleted the parent directory]. Now I re-installed PonyProg and it's not working.

I keep getting the error message "Communication port not available (-16)" whenever I try to read, write or connect in any way to the chip. I've tried reinstalling the programmer software, re-installing the LPT port drivers, running in Windows 98 compatibility mode, etc..

What on earth can I do without going to the extremes of partitioning my disk and setting up a dual boot system [for windoze 98]???

//Panic mode
HELP!!!

//Normal mode
Thanks for any assistance

NxP

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are we seeing XP acting as a barrier to accessing the LP Port.

Yes I am getting grumpy!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey,

Have you installed giveio or similar?

You might try using avrdude instead as well, it comes with WinAVR. It will support the parallel port...

-Colin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I hadn't installed giveio previously, but even when I installed it, nothing changed. Exactly the same error messages as previously.

I have also tried avrdude, with the avrdudegui [both before and after I installed giveio]. The result? A beautiful message saying the following:

"avrdude.exe: ser_open(): can't set buffers for "LPT1" "

I feel completely unmoxed!
The programming cable is definitely not the problem, I have used it before, and the AVR runs correctly with the program already in it. Everything points to XP-lpt trouble, but why is it happening now, not a couple of weeks ago?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use the SP12 programming hardware (very simple) and software. It works very well. giveio is required with WinXP.

Leon

Leon Heller G1HSM

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Leon,

I've just tried the SP12 hardware and software which you recommended. The software is working better with the parallel port than avrdude and ponyprog did, no grumbling about inaccessible buffers and ports, and it seems it's managing to throw out something from the port.

Unfortunately I still have a problem - when I probe the SCK line there is a clock, as expected, when I probe the RST line there are reset pulses as long as the read/write attempt, which is OK, but neither the MOSI nor the MISO lines show any activity. MOSI is stuck at LOW and MISO is stuck at high.

From the software side I have tried using SP12 just to initialize and read, I have tried to program, I have tried at full speed and at limited speed and the results i get are:

sp12 -i -rpf prog2.hex -ref data2.hex
Answers me with:
"No device connected...
You have connected an unknown device, or no device"

sp12 -iMega8 -rpf prog2.hex -ref data2.hex
Shows a read progress bar and writes the program and data hex files - but fills them completely with FF [makes sense with MISO stuck high!]

Slowing things down with the -M0.5
sp12 -iMega8 -M0.5 -wpf prog1.hex -wef data1.hex
sp12 -iMega8 -M0.5 -rpf prog2.hex -ref data2.hex
gives exactly the same results as before.

Do you have any experience with things happening this way?

Thanks,

Nath

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try editing the _sp12rc file and make sure it has the port address you are using.

I just use

sp12 -i

to initialise the program.

I use

sp12 -wpf

for programming.

Leon

Leon Heller G1HSM