I wish the FAT32 library did not use so much stack resources

General discussion on Libstock website & codes posted on this website.
Post Reply
Author
Message
ISL_Dave
Posts: 695
Joined: 29 Jul 2009 09:48
Location: Sheffield

I wish the FAT32 library did not use so much stack resources

#1 Post by ISL_Dave » 24 Oct 2014 17:08

My compiler is currently telling me I have a "Possible stack overflow".

When I look at the Function Tree, I find the FAT32 library requires a stack depth of 8 and it seems I only have a stack level of 10 available on my PIC24FJ128GB206.

i.e.
FAT32_Size uses:
-FAT32_Status
--fileNameToName83
---readMStart
----readMStop
-----FAT32_Dev_Multi_Read_Stop
------Mmc_Multi_Read_Stop
-------Mmc_DeSelect
--------SPI1_Read
Not sure how I can get round this and use the FAT32 library at the moment. :(

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

Re: I wish the FAT32 library did not use so much stack resou

#2 Post by filip » 06 Nov 2014 14:47

Hi,

I think we have discussed this on the other topic. :)

Regards,
Filip.

ISL_Dave
Posts: 695
Joined: 29 Jul 2009 09:48
Location: Sheffield

Re: I wish the FAT32 library did not use so much stack resou

#3 Post by ISL_Dave » 06 Nov 2014 15:10

I think you have helped to 'hit the nail on the head' with most of the issues I was experiencing, thanks. :D

Kind Regards,
Dave

Post Reply

Return to “Libstock Discussion”