Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Repurposing the 16u2 to load programs from sd card?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO
View previous topic :: View next topic  
Author Message
snipsnip

Bascom Member



Joined: 10 Feb 2014
Posts: 60
Location: Melbourne

australia.gif
PostPosted: Sat Jan 24, 2015 12:40 am    Post subject: Repurposing the 16u2 to load programs from sd card? Reply with quote

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

Bascom Member



Joined: 22 Jun 2004
Posts: 866
Location: France

france.gif
PostPosted: Sat Jan 24, 2015 12:23 pm    Post subject: Reply with quote

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

Bascom Member



Joined: 10 Feb 2014
Posts: 60
Location: Melbourne

australia.gif
PostPosted: Sat Jan 24, 2015 12:33 pm    Post subject: Reply with quote

will do.

But if I get in trouble for double posting...

I'm going to blame you Wink
Back to top
View user's profile
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 866
Location: France

france.gif
PostPosted: Sat Jan 24, 2015 2:38 pm    Post subject: Reply with quote

Quote:
I'm going to blame you Wink


not at all, snipsnip but I think this idea was great and everybody need to know Wink

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

Bascom Member



Joined: 10 Feb 2014
Posts: 60
Location: Melbourne

australia.gif
PostPosted: Sat Jan 24, 2015 2:50 pm    Post subject: Reply with quote

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 Wink

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. Cool Probably not worth while for the 2560 but the smaller 328 boards it would be handy for sure.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO 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