View previous topic :: View next topic |
Author |
Message |
snipsnip
Joined: 10 Feb 2014 Posts: 74 Location: Melbourne
|
Posted: Sat Jan 24, 2015 12:40 am Post subject: Repurposing the 16u2 to load programs from sd card? |
|
|
Hi all,
I'm working on a project with the mega2560 board, was thinking about using the 16u2 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 |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sat Jan 24, 2015 12:23 pm Post subject: |
|
|
Whaoo ! A good idea !
But I think you idea it is a general topic, or AVR DOS , not only Arduino.
Could you post it in the main forum ?
Thank you.
JP |
|
Back to top |
|
|
snipsnip
Joined: 10 Feb 2014 Posts: 74 Location: Melbourne
|
Posted: Sat Jan 24, 2015 12:33 pm Post subject: |
|
|
will do.
But if I get in trouble for double posting...
I'm going to blame you |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sat Jan 24, 2015 2:38 pm Post subject: |
|
|
Quote: | I'm going to blame you Wink |
not at all, snipsnip but I think this idea was great and everybody need to know
I'm thinking to you idea, in a fist time I can propose this solution:
#If var_flag=1 then
' run prog 1
elseif var_flag=2 then
' run prog2
#endif
var_flag could be in a file.txt in the sdcard,
the 2560 is so big you can put a lot of choice...
JP |
|
Back to top |
|
|
snipsnip
Joined: 10 Feb 2014 Posts: 74 Location: Melbourne
|
Posted: Sat Jan 24, 2015 2:50 pm Post subject: |
|
|
Duval JP wrote: | Quote: | I'm going to blame you Wink |
not at all, snipsnip but I think this idea was great and everybody need to know
I'm thinking to you idea, in a fist time I can propose this solution:
#If var_flag=1 then
' run prog 1
elseif var_flag=2 then
' run prog2
#endif
var_flag could be in a file.txt in the sdcard,
the 2560 is so big you can put a lot of choice...
JP |
Yeah, funny thing is if I rewrote all the programs that id want to fit on there as standalone functions - there'd still be enough memory left for a flight sim Easter egg. Probably not worth while for the 2560 but the smaller 328 boards it would be handy for sure. |
|
Back to top |
|
|
|