Searching \ for '[PIC]: PIC - Compact Flash Card - Update' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: 'PIC - Compact Flash Card - Update'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: PIC - Compact Flash Card - Update'
2003\11\10@090111 by Herbert Graf

BTW, just to let everybody know, I've discovered a bug during long term

As I was doing some long term testing (filling the card to capacity) I
noticed it stopped functioning at sector 0x8000.

I've discovered the problem to be the set_sector routine, it uses div_t
which is only capable of handling ints.
Since sector is a long in this function, it sets the wrong
cylinder:head:sector combination for sectors above 0x8000.

The solution is to use ldiv_t, however I've having troubling getting the
code to find when invoking that routine.

I will keep everybody updated on my progress.

For the moment the project works fine until it tries to work past about 16MB
of file, after that it stalls! :(

By the way, if anyone can make any suggestions on reducing code size PLEASE
let me know! Thanks.

-- hint: The PICList is archived three different
ways.  See for details.

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...