FAT16 Handler Table Problem

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
karl567
Posts: 64
Joined: 19 Apr 2012 17:25
Location: Konstanz

FAT16 Handler Table Problem

#1 Post by karl567 » 31 Oct 2017 11:32

Hi,

I need to test if there is a FAT16 or FAT32 card inserted.

Code: Select all

i:=FAT32_Init();
if i=0 then FAT32_card_inserted
else begin
  i:=FAT16_Init();
  if i=0 then FAT16_card_inserted;
end;
But I get linking error after compiling:
--> Handler table size exceeded allowed size (max. 200 handler vectors allowed)

Is there a solution? Thanks for help!

Karl

User avatar
dusan.poluga
mikroElektronika team
Posts: 780
Joined: 02 Feb 2017 14:21

Re: FAT16 Handler Table Problem

#2 Post by dusan.poluga » 01 Nov 2017 17:52

Hi,

By default the maximum handler size is set to 200.
The number of handlers can be increased by calling the function shown below at the beginning of your code.

Code: Select all

SetHandlerTableSize(500);
Best Regards,
Dusan Poluga.

ptaherig
Posts: 8
Joined: 14 Feb 2018 21:32

Re: FAT16 Handler Table Problem

#3 Post by ptaherig » 02 Aug 2018 23:23

The function SetHandlerTableSize does not exist!!

Which library should be included?

Pooya

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: FAT16 Handler Table Problem

#4 Post by filip » 03 Aug 2018 08:28

Hi,

It exists although it is not documented, just call it in the main function before everything else :

Code: Select all

main:
SetHandlerTableSize(500)
...
Regards,
Filip.

ptaherig
Posts: 8
Joined: 14 Feb 2018 21:32

Re: FAT16 Handler Table Problem

#5 Post by ptaherig » 07 Aug 2018 23:38

Hi Filip,

I get the following error (image attached). Can you please advise us on what to add to the code please?

Pooya
Attachments
SetHandler.jpg
SetHandler.jpg (99.39 KiB) Viewed 2942 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: FAT16 Handler Table Problem

#6 Post by filip » 09 Aug 2018 13:25

Hi,

Please update to the compiler to the latest version where this function is supported.

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 General”