View previous topic :: View next topic |
Author |
Message |
poorman91
Joined: 02 Jul 2005 Posts: 5
|
Posted: Sat Jul 02, 2005 8:43 pm Post subject: problem getting ANY code i make to run |
|
|
hello everyone.
im new to this so i may just be missing something.
i have build a project board using a AT90S2313 running @ 4mhz,
and with a max232.
i have a problem getting my code to run.
the only code it will run is a led "blink.hex" sample i downloaded from another website.
so i know the board works.
but nothing i write and compile works.
i cant get the sample code to work.
i dont understand .
i have followed step by step instructions but cant seem to get it working.
any help would be great. |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sat Jul 02, 2005 9:02 pm Post subject: |
|
|
poorman,
Did you declare a printer ?
what developement tools did you use (STK 200, 300, 500 or other ?)
to blink a led the program is very short, please let us know yours.
Bascom give you a xxx.bin file, that is that kind of file which I use.
Well and know I'll go in vacation for 2 weeks ! Good night !
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
poorman91
Joined: 02 Jul 2005 Posts: 5
|
Posted: Sat Jul 02, 2005 9:05 pm Post subject: |
|
|
a printer ?
no sure what you mean.
im using bascom-avr.
i am using the hex should i use the bin? |
|
Back to top |
|
|
poorman91
Joined: 02 Jul 2005 Posts: 5
|
Posted: Sat Jul 02, 2005 9:08 pm Post subject: |
|
|
im using fbprg16 to write the chip. |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sat Jul 02, 2005 9:11 pm Post subject: |
|
|
printer,
go to options
go to programmer
you MUST declare the port of a printer if you use the ISP programmer
parallel port ( see the help about printer)
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
naicheben
Joined: 18 Nov 2004 Posts: 47 Location: Leck
|
Posted: Sun Jul 03, 2005 2:17 pm Post subject: |
|
|
as you say you programmed the chip with the blink sample and it works I think the programming is OK. If you want to know if your max232 works: pull out the AVR loop the pins RXD/TXD and look if you get back your keys pressed in a terminal programm such as the Terminal in the BASCOM-AVR Environment or Hyperterminal.
Be shure to set up BASCOM-AVR with the correct Chip, Clock and Baudrate, see Otpionmenue for this. |
|
Back to top |
|
|
poorman91
Joined: 02 Jul 2005 Posts: 5
|
Posted: Sun Jul 03, 2005 4:35 pm Post subject: |
|
|
ok
that worked
i went into term and when i hit a key it came back
next i will check my xtal on the avr |
|
Back to top |
|
|
poorman91
Joined: 02 Jul 2005 Posts: 5
|
Posted: Sun Jul 03, 2005 6:01 pm Post subject: |
|
|
ok i got it working
i was using a 4mhz xtal and i changed it to a 10 now everything is working
i dont know why the 4mhz didnt work right but its working now
thanks guys for you help |
|
Back to top |
|
|
|