Go Down

Topic: ATMega328P Memory upgrade? (Read 950 times) previous topic - next topic

jengil

I have a few prototype projects involving an ATMega328P and have been using it due to its simplicity and compatibility with Arduino, and I seem to understand the basics of the code alright after working with it for a little.  I keep running into the issue where I run out of flash memory to store my code, etc, and in some scenarios I am also running a few I/O pins short of what I'd like to see.  Are there any other processors with bigger memory and more I/O pins that the Arduino Bootloader can be uploaded onto?  How does this work as I am unfamiliar. 

If there is a particular suggestion in terms of solving these two issues without having to drastically change the software it would be excellent.  Thanks for any insight ahead of time.

LP

raschemmel

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

jengil


ATmega2560 ?


That actually sounds quite good if they make it in a through hole package, do you know if they do? I cannot seem to find it and as this is a prototype.  I did see a few breakoutboards, which I could consider, but it is already a pretty pricey chip (in comparison with the 328). 

If there are any other more cost effective solutions it would be great.  Thank you.

Coding Badly

#3
Apr 30, 2014, 08:41 am Last Edit: Apr 30, 2014, 08:43 am by Coding Badly Reason: 1
That actually sounds quite good if they make it in a through hole package, do you know if they do?


http://www.atmel.com/devices/atmega2560.aspx
Look under Ordering Codes for -#PU.  The answer is "no".

ATmega1284P

Vendors in no particular order...
Mouser
Arrow
Newark
Digi-Key
AVNET

jengil

Great!! Thanks so much. 

So this 1284 is compatible and i can burn the same Arduino Bootloader on there to operate the same code etc?

Thanks again.

Coding Badly


https://www.google.com/search?q=optiboot+atmega1284p

CrossRoads

Yes, download the mighty1284 core files, and program just like a big '328P.
Link to core files about 1/2 way down my page here
http://www.crossroadsfencing.com/BobuinoRev17/

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

jengil


jengil

Additionally, do you have any tips/assistance as far as burning the bootloader (I dont have an MKII yet and haven't been able to get it to work with the barebones arduino method even on the 328P's I have without he preburned bootloader) ?   Thanks so much for the help.

CrossRoads

I'd go with Nick Gammon's:
http://www.gammon.com.au/forum/?id=11635
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

jengil

Excellent - this is the first one I can get to upload the sketch without errors, however when I try to burn the bootloader I get this error
Code: [Select]
avrdude: stk500_getsync(): not in sync: resp=0x00  I am pretty sure my simple circuit with the 328P is set up correctly (I dont have the RBB PCB like Gammon does, but I had it built on a breadboard before so I have been using that.

Any suggestions as to what theis error means or how to solve it?  Thanks so much this looks like it is the right route if I can resolve this issue, thanks again!

CrossRoads

Means the chip is not talking.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

jengil

OH! I figured it out, That error comes up regardless, but I can still bring up the Serial after and Burn the bootloader.  I am having some issues with my Atmel Studio and also having trouble changing the fonts using the theme.txt modifications as said in this forum, do you happen to have an IDE/solution that you would like to recommend?  I am going to get some 1284's shortly here, but it will probably be a little while before I actually get the chips in and get something uploading on them so I look forward to doing so.    Thanks for the help, I really appreciate it.

CrossRoads

Arduino IDE with mighty1284 core files added.
Link to  mighty1284 core files are about halfway down my webpage:

"Core Files for Bobuino '1284P Boards "
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

mrburnette


Great!! Thanks so much. 

So this 1284 is compatible and i can burn the same Arduino Bootloader on there to operate the same code etc?

Thanks again.


I do not know if any are left, but I purchased 1 fully assembled w/ uC and it is a very nice board.
http://forum.arduino.cc/index.php?topic=235402.0

This then makes a complete Dev platform for bare bones 1284's.

Ray

Go Up