Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

ATmega 328P Code transfer how ?

 
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
autoguider

Bascom Member



Joined: 24 Sep 2007
Posts: 60
Location: Aachen

germany.gif
PostPosted: Wed Aug 19, 2009 6:58 pm    Post subject: ATmega 328P Code transfer how ? Reply with quote

Dear colleagues,
I have a problem putting the code created by Bascom into the 328P

I am running short of memory with my AT Mega8.
The alternative for the AT Mega8 was a pin compatible Atmega 328P.

So far I did the program transfer to the chip via PonyProg and a serial link.
The processor is for programming in a development kit that I got from Pollin.

So far PonyProg does not support the 328P.

Does one of the existing types of Atmel processor setups within
Ponyprog work with the 328P. I am not sure e.g. the fuse bits. I
think there is a high risk that I will lock me out if something goes
wrong with programming.

In case there is no solution with PonyProg what other program will work with the serial link.

Please be so kind and let me know.

best regards
Christian
Back to top
View user's profile
MAK399

Bascom Member



Joined: 23 Jun 2009
Posts: 110
Location: Germany

germany.gif
PostPosted: Wed Aug 19, 2009 8:55 pm    Post subject: Reply with quote

Hi autoguider,

when PonyProg is not supporting ATmega328P I can recommend STK500 Programmer because there is also a native driver in BASCOM and you can program your ATmega direct from BASCOM (including Fuse Bit's). I'm using it and I'm very happy with it. Is is also over serial interface (RS-232).

One additional benefit is the High Voltage Programming with STK500.

Search BASCOM Help file and this forum for stk500.

MAK399

_________________
Using BASCOM 1.12.0.0
Back to top
View user's profile
mattcro

Bascom Member



Joined: 03 Oct 2007
Posts: 324
Location: Scotland

uk.gif
PostPosted: Wed Aug 19, 2009 9:25 pm    Post subject: Reply with quote

Can you fit your code in a mega168? This may be supported by ponyprog (I don't use ponyprog) and might also be easier to buy.
_________________
If all else fails, read the manual. Even better: read the manual before something fails. If you can't find it in the manual, search the forum.
BascomAVR 2.0.8.2
Back to top
View user's profile
bzijlstra

Bascom Ambassador



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

netherlands.gif
PostPosted: Thu Aug 20, 2009 4:25 pm    Post subject: Source for Atmega328p Reply with quote

If you want a source for the Atmega328p

Check http://www.tuxgraphics.org Ordered some and they came from Canada.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
JC

Bascom Member



Joined: 15 Dec 2007
Posts: 489
Location: Cleveland, OH

usa.gif
PostPosted: Fri Aug 21, 2009 4:59 am    Post subject: Reply with quote

The STK500, as mentioned above, is great for working with most of the AVR chips, (excluding XMega, and a few tiny's, I believe). It can also be used as an ISP programmer for chips on your own PCB.

If the STK500 is too expensive, an inexpensive option is to use an Atmel AVR Butterfly (small Demo board, with LCD, Mega169, 5-way joystick, piezo beeper, thermistor, eeprom, etc., all the size of a credit card), and program it to act as an ISP programmer.

You can do this using Dean's Buttload program. The software, by Dean, is free. Butterfly ISP Programmer, ButtLoad .

The manual explains it all, you need the AVR Betterfly, and whatever connector you want. LEDs are optional, but useful.


The Butterfly costs about $20 USD.

The Butterfly ButtLoader interfaces with AVR Studio4, (Free from Atmel's web site, and also what is used for the STK500 interface).

JC
Back to top
View user's profile Visit poster's website
tasosstr

Bascom Member



Joined: 05 Jan 2005
Posts: 48

greece.gif
PostPosted: Sat Aug 22, 2009 10:27 am    Post subject: Reply with quote

What i use for now is the schematic from here http://dybkowski.net/elka/ispprog_en.html (this is also nice and support this chip)

Supported microcontrollers:

* AT89S2051, AT89S4051, AT89S51, AT89LS51, AT89S52, AT89LS52, AT89S53, AT89S8252, AT89S8253
* AT90S1200, AT90S2313, AT90S2323, AT90S2333, AT90S2343, AT90S4414, AT90S4433, AT90S4434, AT90S8515, AT90S8535, AT90CAN32, AT90CAN64, AT90CAN128, AT90PWM2, AT90PWM3, AT90USB646, AT90USB647, AT90USB82, AT90USB162, AT90USB1286, AT90USB1287
* ATtiny12, ATtiny13, ATtiny15, ATtiny24, ATtiny25, ATtiny26, ATtiny44, ATtiny45, ATtiny84, ATtiny85, ATtiny261, ATtiny461, ATtiny861, ATtiny2313
* ATmega48, ATmega48P, ATmega8, ATmega88, ATmega88P, ATmega8515, ATmega8535, ATmega16, ATmega161, ATmega162, ATmega163, ATmega164P, ATmega165P, ATmega168, ATmega168P, ATmega169, ATmega32, ATmega323, ATmega324P, ATmega325, ATmega328P, ATmega329, ATmega64, ATmega128, ATmega640, ATmega644, ATmega644P, ATmega645, ATmega649, ATmega1280, ATmega1281, ATmega2560, ATmega2561, ATmega3250, ATmega3290, ATmega6450, ATmega6490

Supported serial Flash memories:

* AT45DB011B, AT45DB011D, AT45DB021B, AT45DB021D, AT45DB041B, AT45DB041D, AT45DB081B, AT45DB081D, AT45DB161B, AT45DB161D, AT45DB321B, AT45DB321C, AT45DB321D, AT45DB642D, AT45CS1282
* AT25DF021, AT25DF041A, AT25DF081, AT26DF081, AT25DF161, AT26DF161, AT25DF321, AT25DF641, AT25F512B, AT25FS010, AT26F004


You can also use the bascom with this hardware: from the Bascom AVR select the Programmer "STK200/STK300 Programmer"

And another one software is the AVR - ISP from Kanda (i like more this one) go to http://www.kanda.com/ register (free) and download the setup file

Now if you use laptop and you don't have external power then i prefer the solution for Ben, with the USB Programmer Very Happy

This solution it will cost you 5 Euro ? no more Very Happy

Enjoy it Razz
Back to top
View user's profile
DoctorBob

Bascom Member



Joined: 05 Jul 2006
Posts: 12
Location: Nederland

netherlands.gif
PostPosted: Mon Aug 31, 2009 10:32 pm    Post subject: Reply with quote

Hi,

I use the MCS programmer, cheap (39 euro) and very fast USB programmer.
It works fine with the ATmegaxx8 versions.
As I had same problem with M88 was to small, I started to use the M168. Even that is already 95% filled Very Happy

You can directly program from BASCOM AVR, as I use it as ISP for all my designed hardware.
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