Re: Removing CF from IDE Bus
- From: "Slobodan Brcin \(eMVP\)" <sbrcin@xxxxxx>
- Date: Thu, 31 Mar 2005 19:42:27 +0200
MJ,
If you have problem with removable disks as well then there is very little
that I can help you with :-(
Try making your test application that when called can eject, remove/stop all
drivers that make a problem.
If you can make this then you can concentrate on detecting CF removal, if
you can't do this then it is useless to try to figure out if CF is there or
not.
Regards,
Slobodan
"MJ" <MJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CC8959F8-A4F9-4C5A-A65A-2F768B8C4CFC@xxxxxxxxxxxxxxxx
> We have had this problem with CF marked as removable and fixed (we have
> the
> utility from SanDisk to change it).
>
> "Slobodan Brcin (eMVP)" wrote:
>
>> MJ,
>>
>> Let me ask again, Have you tried this on disks marked as removable?
>>
>> Regards,
>> Slobodan
>>
>>
>> "MJ" <MJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:771236F4-0830-4584-BF7A-05F553AA043C@xxxxxxxxxxxxxxxx
>> > Dave and Slobodan,
>> > Sorry I haven't gotten back to you, I've been travelling.
>> >
>> > I appreciate your input, but I don't think it will solve the problem
>> > that
>> > we
>> > have.
>> >
>> > The main problem is that the user could remove the CF whenever they
>> > want
>> > (even if we tell them not to), and we would like to be able to
>> > gracefully
>> > recover from that event. If we have a FILE* open on the CF, and they
>> > remove
>> > it, then the next time we try to access it, the system will hang.
>> > Similarly,
>> > if we are in explorer, the card is removed, and you try to open that
>> > drive
>> > through explorer, the system will hang forever. Is there any way we
>> > can
>> > occasionally check if the disk is still there, or fail accessing the
>> > disk
>> > without causing the system to hang?
>> >
>> > Thanks!
>> > MJ
>> >
>> > "Dave August" wrote:
>> >
>> >> No Problem Slobodan,
>> >>
>> >> I guess that the CF designers figured that as long as they had all
>> >> these
>> >> 'smarts' in the card they'd do more with it and wanted it to directly
>> >> plug
>> >> into the IDE cable.
>> >> BUT IMHO they really screwed this up.There should have been a seperate
>> >> set
>> >> of I/O pins for IDE mode, and making the RESET pin be reset for either
>> >> mode
>> >> was BIG mistake, since PCMCIA reset is active HIGH.
>> >> And yes this is why the USB adapters work, they have their own micro
>> >> and
>> >> can
>> >> do things however they please.
>> >>
>> >> FWIW my preferd mode when building embedded controllers is to
>> >> electrically
>> >> use the CF in PCMCIA mode so I can use hot swap, but just use the IO
>> >> registers and talk to it like it's in IDE mode, since the first 8
>> >> registers
>> >> are EXACTLY the same. Most embedded things can't afford the 12 address
>> >> bits
>> >> and I just use sequential access. Of course my hadrware takes into
>> >> account,
>> >> RESET and the other goofy things.
>> >>
>> >> Dave
>> >>
>> >>
>> >> "Slobodan Brcin (eMVP)" <sbrcin@xxxxxx> wrote in message
>> >> news:%239f8wMxLFHA.732@xxxxxxxxxxxxxxxxxxxxxxx
>> >> > Thanks Dave,
>> >> >
>> >> > I see now what was my illusion.
>> >> > I was under impression that IDE to CF adapter would contain some
>> >> > microcontroller that separated CF from IDE bus. And since you are
>> >> > saying
>> >> > that CF is connected directly to IDE cable I see problem in my
>> >> > reasoning.
>> >> >
>> >> > Thanks again,
>> >> > Slobodan
>> >> >
>> >> > PS:
>> >> > Beside having controler on IDE cable would be a little strange now
>> >> > when
>> >> > I
>> >> > think about it better :-)
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>
.
- References:
- Re: Removing CF from IDE Bus
- From: MJ
- Re: Removing CF from IDE Bus
- From: Slobodan Brcin \(eMVP\)
- Re: Removing CF from IDE Bus
- From: MJ
- Re: Removing CF from IDE Bus
- Prev by Date: Re: Boot to RAM from CF
- Next by Date: Re: Hibernate once - resume many
- Previous by thread: Re: Removing CF from IDE Bus
- Next by thread: Mass distribution
- Index(es):
Relevant Pages
|