View previous topic :: View next topic |
Author |
Message |
tywall
Joined: 07 Aug 2014 Posts: 4
|
Posted: Thu Aug 07, 2014 2:54 pm Post subject: Question about programming |
|
|
Hello
I would like programm a chip via serial using max232 something like this: http://cdn.webdca.com/avr/images/programmers/max-232.png
The problem is that i don't how what settings should i use for the programmer type and comunication
Please help
(BASCOM-AVR version : 2.0.7.7 ) |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Thu Aug 07, 2014 3:37 pm Post subject: bootloader |
|
|
Search for bootloader in this forum.
in short: the first time you have to program a small part of the flash with a bootloader. With fusebits you tell the avr to jump first to the bootloader and if nothing comes in on the serial port jump to the start of your program.
in Bascom there are commands to not overwrite this boot-area.
have fun
Ben Zijlstra |
|
Back to top |
|
|
tywall
Joined: 07 Aug 2014 Posts: 4
|
Posted: Sat Aug 09, 2014 2:07 pm Post subject: |
|
|
So there is no way i can program it without buying a programmer and uploading the boot loader first? |
|
Back to top |
|
|
Paulvk
Joined: 28 Jul 2006 Posts: 1257 Location: SYDNEY
|
Posted: Sat Aug 09, 2014 2:25 pm Post subject: |
|
|
Yes you have to program it with a boot loader first using a programmer
Programmers are very cheap now.
Regards Paul |
|
Back to top |
|
|
tywall
Joined: 07 Aug 2014 Posts: 4
|
|
Back to top |
|
|
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Sat Aug 09, 2014 8:21 pm Post subject: |
|
|
Yes. This is SIProg. I made it with PonyProg years ago and work to this time with Compaq NX9005 without external power supply SiProg is supported by AvrDude so for newest chips You can use Burn-O-mat But simplest ever programmer is. For paralel port. Four resistors needed. Sometimes people insert it without plug Hahaha directly to port.
Make sure that in BIOS port are set to EPP+ mode |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
|
Back to top |
|
|
Arera
Joined: 23 Sep 2007 Posts: 386 Location: Wuppertal, Germany
|
Posted: Sun Aug 10, 2014 1:03 pm Post subject: |
|
|
My opinion:
As a beginner, I would not spend time and money in an "as cheap as possible" programmer. What a beginner needs is a reliable, rock solid programmer, like the AVR MK2. Imagine your first project (the flashing Led) does not work. Then you cannot be shure if the cheap programmer is to blame.
Remember: Only an exerienced craftsman can work with cheap, worn, rusty pliers...
The beginner needs the best tools he can get! |
|
Back to top |
|
|
tywall
Joined: 07 Aug 2014 Posts: 4
|
Posted: Sun Aug 10, 2014 2:16 pm Post subject: |
|
|
Well i have to finish something in the next few days and i can't get a programmer on such short notice so i will have to try the serial/lpt method and hope it will work. |
|
Back to top |
|
|
Robert_d1968
Joined: 18 Dec 2012 Posts: 67 Location: America
|
Posted: Thu Aug 14, 2014 5:36 pm Post subject: |
|
|
Hello there,
I currently use a boot loader in all of my projects, you can find a couple of projects I have uploaded here.
I have since moved to a new type of IC that does not require any capacitors to run the serial port, it's of a surface mount type.
Part# DS275S made by dallas.
It works really well so far, and I will use it in all of my future projects as well...
So if you look at the colloidal silver or shutter board project, both projects you can download the code and schematics for them.
This way you can see how to use the max232 as this is what was used in them. (shutter board uses the dallas IC)
For now I'm using a surface mount ATmega8 in most projects, you can just use the ICP programming pins if you have a programmer
and you will need a programmer to get the boot loader onto the IC first, then you can program it over the serial port after that.
If you should need further help, please feel free to post it up
Robert |
|
Back to top |
|
|
|