Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Question about programming

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
tywall

Bascom Member



Joined: 07 Aug 2014
Posts: 4

PostPosted: Thu Aug 07, 2014 2:54 pm    Post subject: Question about programming Reply with quote

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
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Thu Aug 07, 2014 3:37 pm    Post subject: bootloader Reply with quote

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
View user's profile Visit poster's website
tywall

Bascom Member



Joined: 07 Aug 2014
Posts: 4

PostPosted: Sat Aug 09, 2014 2:07 pm    Post subject: Reply with quote

So there is no way i can program it without buying a programmer and uploading the boot loader first?
Back to top
View user's profile
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1257
Location: SYDNEY

australia.gif
PostPosted: Sat Aug 09, 2014 2:25 pm    Post subject: Reply with quote

Yes you have to program it with a boot loader first using a programmer

Programmers are very cheap now.

Regards Paul
Back to top
View user's profile
tywall

Bascom Member



Joined: 07 Aug 2014
Posts: 4

PostPosted: Sat Aug 09, 2014 2:31 pm    Post subject: Reply with quote

How about using this: http://wewannalearn.blogspot.com/2011/11/avr-programmer-how-to-make.html ?
Back to top
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 971

poland.gif
PostPosted: Sat Aug 09, 2014 8:21 pm    Post subject: Reply with quote

Yes. This is SIProg. I made it with PonyProg years ago and work to this time with Compaq NX9005 without external power supply Very Happy SiProg is supported by AvrDude so for newest chips You can use Burn-O-mat Very Happy 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
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Sun Aug 10, 2014 11:16 am    Post subject: Reply with quote

Hello,
only for some chips : you can do an atmega-arduino bootloader, but you need a arduino uno first
I find that in french : http://itechnofrance.wordpress.com/2013/04/13/construire-un-arduino/

Bascom use special programmer tools for Arduino working perfect.

bon courage
jp Wink
Back to top
View user's profile Visit poster's website
Arera

Bascom Member



Joined: 23 Sep 2007
Posts: 386
Location: Wuppertal, Germany

germany.gif
PostPosted: Sun Aug 10, 2014 1:03 pm    Post subject: Reply with quote

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
View user's profile
tywall

Bascom Member



Joined: 07 Aug 2014
Posts: 4

PostPosted: Sun Aug 10, 2014 2:16 pm    Post subject: Reply with quote

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
View user's profile
Robert_d1968

Bascom Member



Joined: 18 Dec 2012
Posts: 67
Location: America

usa.gif
PostPosted: Thu Aug 14, 2014 5:36 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum