FAT32_Init() hangs

General discussion on mikroC PRO for FT90x.
Post Reply
Author
Message
OVogel
Posts: 3
Joined: 09 Jan 2020 21:06

FAT32_Init() hangs

#1 Post by OVogel » 09 Jan 2020 21:35

Hi,

My second problem is the FAT32_Init() routine inside the FT900 MCU of your HMI5.0 hangs up. I determine that by measure debug IO signals by scope.

My project:

I use your IDE microPASCAL/C for FT900 compiler in my complex project....
The main MCU P24FJ512GB610 with 32 MHz clock drives your HMI5.0" via 115.2k Baud UART, drives a key controller MCU P16F18346 and a precision clock counter MCU P18F24K40 both via I2C Bus, drives a XBee RF module, drives a Bluetooth module and so so on....

At room temperature everything works fine. By first power up the signals are already okay. The FT812_Init() routine works fine. Inside of this routine the FAT32_Init() function also.

Now, when I put the unit in the climate cabinet and drive it at 0 ° C, my unit doesn't start up, the HMI display hangs inside the FAT32_Init() routine. Only a warming up to 10°C and a power on reset starts the unit normally.

I don't know what the reason is because I can't debug the code inside the FAT32_Init().

I use a Micro SD Card 4Gb Class 10 from Itenso.

Does somebody has any idea ?

Best
Oliver

OVogel
Posts: 3
Joined: 09 Jan 2020 21:06

Re: FAT32_Init() hangs

#2 Post by OVogel » 10 Jan 2020 08:38

Good morning,

I think it is the response time of the SD Card. Yesterday evening I use a other SD Card 8Gb. I put the unit in the climate carbinet over night at 0°C. The unit hangs. ( At the moment it is so because the main MCU have a problem by this temperature. I think it is the I2C Bus. ) But the power on reset starts the unit immediately now. There is no hang up of the FAT32_Init() any more at 0°C. I think it is a faster booting time of the SD Card.

It is conform with the post from JoseD
viewtopic.php?f=88&t=70657&hilit=FAT32_Init&start=15

Have you any idea to use slower cards ?

Best
Oliver

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: FAT32_Init() hangs

#3 Post by filip.grujcic » 15 Jan 2020 09:12

Hi,

I believe I answered you on the ticket you opened.

Kind regards,
Filip Grujcic

Post Reply

Return to “mikroC PRO for FT90x General”