View previous topic :: View next topic |
Author |
Message |
mike676
Joined: 29 Mar 2005 Posts: 4
|
Posted: Tue Mar 29, 2005 1:29 am Post subject: Communication problems with ATTINY15 and Parallel ISP progr |
|
|
I mounted the famous ISP programmer with a 74HC244 but I have hard times making it work !!!
It never recognize the AVR chip and every times I program something inside readback always have errors.
Only zeros are there !
Does anybody uses that programmer and can tell me how to setup Bascom for it ?
Thanks ! |
|
Back to top |
|
|
Calv
Joined: 08 Dec 2004 Posts: 26
|
Posted: Wed Mar 30, 2005 9:26 pm Post subject: |
|
|
Try this:
open file: Prog
add:
[our programmer]
base=$378
mosi=base,32
clock=base,16
reset=base,128
miso=base+1,64
save file
restart Bascom
make choice programmer: "Universal MCS interface"
goto "Universal"
make choice: "our programmer"
save
restart Bascom
Good luck, worked fine with me. _________________ www.dena.demon.nl
www.dena.demon.nl/balansbot.html |
|
Back to top |
|
|
mike676
Joined: 29 Mar 2005 Posts: 4
|
Posted: Thu Mar 31, 2005 2:51 am Post subject: |
|
|
Heuhhh...
I beleive you talk about prog.ini file under C:\Programfiles\MCS Electronic\BascomAVR.
I did add these few lines to the beginning of the file, save restarted bascom but the choice "our programmer" was not there.
I tried at the end of file, neither....
Is there something I missed ???
Thanks ! |
|
Back to top |
|
|
DToolan
Joined: 14 Aug 2004 Posts: 1384 Location: Dallas / Fort Worth, Texas (USA)
|
Posted: Thu Mar 31, 2005 2:53 am Post subject: |
|
|
There is a file in the Bascom directory named "prog.settings"
I think that's the file he is talking about. Edit it with notepad. |
|
Back to top |
|
|
mike676
Joined: 29 Mar 2005 Posts: 4
|
Posted: Thu Mar 31, 2005 3:16 am Post subject: |
|
|
OK, I did that.
It works better I guess, but the major problem is:
I can't write a program into the ATTINY15L.
Reading memory always returns all zeros...
If I clic the "AutoProgram Chip" Button, nothing happens...
If I use the "Write buffer to flash ROM" it's ok if there all zeros into buffer.
But if there is a byte different than zero, it stuks to "writing..." but never writes. Until I hit the Cancel button, the verification fails because it never wrote a single byte !!
|
|
Back to top |
|
|
Luciano
Joined: 29 Nov 2004 Posts: 3149 Location: Italy
|
Posted: Thu Mar 31, 2005 8:56 am Post subject: |
|
|
Hi!
Which version of Bascom AVR are you using?
Did you test with AT90S2313, AT90S8515 or AT90S8535?
Did you have a previous version of Bascom AVR installed on this PC?
(If yes, which one).
Luciano |
|
Back to top |
|
|
mike676
Joined: 29 Mar 2005 Posts: 4
|
Posted: Fri Apr 01, 2005 2:34 am Post subject: |
|
|
Bascom ver# 1.11.7.4
no I use a ATTINY15L
no previous Bascom Version |
|
Back to top |
|
|
Luciano
Joined: 29 Nov 2004 Posts: 3149 Location: Italy
|
Posted: Fri Apr 01, 2005 11:42 am Post subject: |
|
|
Hi!
These are just troubleshooting ideas.
(Never used a ATtiny15L and never used your programmer).
* * *
If your hardware does not work with the Bascom AVR ISP STK programmer
software then double check your hardware with the following software:
PonyProg serial device programmer software.
(Support for the AVR ATtiny microcontroller ATtiny12, ATtiny15).
http://www.lancos.com/prog.html
PonyProg works with the hardware interfaces AVR ISP (STK200/300).
http://www.lancos.com/prog.html#avrisp
* * *
Try your programmer with an AT90S2313, AT90S8515 or AT90S8535.
* * *
Read the ATtiny15L datasheet page 54 "Memory programming".
* * *
(Not related with programming the flash program memory of the ATtiny15).
Are you aware that the ATtiny15 does not have SRAM and
BASCOM depends on SRAM for the hardware stack and software stack?
(See Bascom help file "$TINY" directive).
* * *
Best regards,
Luciano |
|
Back to top |
|
|
|