Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

One SD card - 2 cpu's

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS
View previous topic :: View next topic  
Author Message
nicofer

Bascom Member



Joined: 01 May 2013
Posts: 89
Location: GRJ

southafrica.gif
PostPosted: Fri Jun 14, 2013 6:05 am    Post subject: One SD card - 2 cpu's Reply with quote

Hi

This might not be the correct topic but is has to do with SD cards.

I want to share one SD card between 2 cpu s - one a m128 - other a 328 maybe .

The plan is for the mega128 to use the card for date store and so on most of the time

Second cpu will need to control the main pcb and card to put in in a standby state while it access the card - to save a new

flash file for bootloader if required received over GPRS or some other remote communication channel .

I have not tested any of the hardware but I think it should work with a few 4066 or same type of isolators on the spi lines .

The slave cpu will also control main cpu RESET and a " bootloader activation " pin and access to the SD card .

Maybe it is old technology so any new ideas on this setup ?

Cheers
Back to top
View user's profile
oe9vfj

Moderator



Joined: 17 Jun 2004
Posts: 269
Location: Austria, Hard

austria.gif
PostPosted: Sat Oct 26, 2013 6:45 am    Post subject: Reply with quote

Only one CPU can use the Card at the same time.
You can give the control of the card from one CPU to an other CPU, if all opened files are closed and do an additional FLUSH to be sure, the FAT and directory is updated anyway.
IF you make sure, that all information is written to the card and all files are closed, like you want to remove the card to put it to an other system, you can give the control to an other CPU.

_________________
regards Josef

DOS - File System for BASCOM-AVR on http://members.aon.at/voegel
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS 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