View previous topic :: View next topic |
Author |
Message |
snipsnip
Joined: 10 Feb 2014 Posts: 74 Location: Melbourne
|
Posted: Sat Jan 24, 2015 12:38 pm Post subject: Repurposing the 16u2 to load programs from sd card? |
|
|
Hi all,
I'm working on a project with an Arduino mega2560 board, was thinking about using the 16u2 (on-board, used as an FTDI alternative) as a way to load
precompiled hex files from an SD card (avr dos?) to the M2560.
That way I could have multiple programs loaded on an sd card and selectively load them via a basic menu system.
Seems like such a waste having a gutsy little chip like the 16u2 used purely as a usb to serial converter!
just thinking out load - am I missing something?
Cheers
Simon
(BASCOM-AVR version : 2.0.7.8 ) |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Tue Jan 27, 2015 12:15 am Post subject: |
|
|
You do realise that the Flash ( program memory ) of an AVR has a very limited number of memory write cycles ? _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
snipsnip
Joined: 10 Feb 2014 Posts: 74 Location: Melbourne
|
Posted: Tue Jan 27, 2015 5:25 am Post subject: |
|
|
AdrianJ wrote: | You do realise that the Flash ( program memory ) of an AVR has a very limited number of memory write cycles ? |
Isn't it >10,000 ?
even around 1,000 would be ok ( well for the application I have in mind)
Cheers |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Tue Jan 27, 2015 5:48 am Post subject: |
|
|
I see on the Mega2560 they have raised the guaranteed write cycles to >10,000 Used to be only >1000 on older devices. So yes, as long as you realise the limitation, it should be fine.
Still seems like a bit of an odd thing to do, since a micro is more-or-less tied to a particular hardware configuration, and a specific application program which uses it. I would be thinking more like several different pieces of main program, each pretty short in themselves, and using a pile of common routines. Then just use jumpers or serial commands, or even eeprom settings, to 'switch on' the piece of main program you want executed.
Still, it should work the way you want from card too. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
|