Hi Richie,
Have you tried using the FAT32_Format instead of the FAT32_Init function?
Please refer to the FAT32 Library help file to find the function's description.
Kind regards,
Libstock exclusive: FAT32 and Network Ethernet Libraries
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: Libstock exclusive: FAT32 and Network Ethernet Libraries
Stefan Filipović
Re: Libstock exclusive: FAT32 and Network Ethernet Libraries
The FAT32_Read command in this code example is locking up. Any ideas why ?
filename = "TestFile.txt"
FAT32_Open(@filename, FILE_READ_F32)
FAT32_Size(@filename, @filesize)
while filesize > 0
SRAM_addr_lo = lo(SD_addr)
SRAM_addr_hi = hi(SD_addr)
FAT32_Read(0, @SD_data, 1) 'PROBLEM HERE !!!
SRAM_data = SD_data
SRAM_WE = 0
SRAM_WE = 1
inc(SD_addr)
dec(filesize)
wend
filename = "TestFile.txt"
FAT32_Open(@filename, FILE_READ_F32)
FAT32_Size(@filename, @filesize)
while filesize > 0
SRAM_addr_lo = lo(SD_addr)
SRAM_addr_hi = hi(SD_addr)
FAT32_Read(0, @SD_data, 1) 'PROBLEM HERE !!!
SRAM_data = SD_data
SRAM_WE = 0
SRAM_WE = 1
inc(SD_addr)
dec(filesize)
wend
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: Libstock exclusive: FAT32 and Network Ethernet Libraries
Hi Richie,
Was the file opened successfully?
What is the return value of the following line? FAT32_Open(@filename, FILE_READ_F32)
Could you please zip and attach your project for inspection?
Kind regards,
Was the file opened successfully?
What is the return value of the following line? FAT32_Open(@filename, FILE_READ_F32)
Could you please zip and attach your project for inspection?
Kind regards,
Stefan Filipović
-
- Posts: 1
- Joined: 26 Mar 2022 13:47
Re: Libstock exclusive: FAT32 and Network Ethernet Libraries
is there a version of FAT32 library which is compatible with the package manager for recent version of NECTO studio (currently using 1.8.6)? Trying to load the version from libstock here:
https://libstock.mikroe.com/projects/do ... .2.2.0.zip
shows error "Error occurred while installing package. Please make sure it is a valid package archive."
the zip file is not corrupted, I can extract enclosed .mpkg files but do not see how to add these individually to Necto studio. After searching I found similar situation here:
viewtopic.php?t=75788
but cannot get instructions to work as the directory structure doesn't match my installation (I am using macosX), there is no directory named 'Packages'. From what I can tell, packages installed by the package manger get installed into:
/Users/<username>/Library/Application Suport/Mikroe/NectoStudio/libs
My project is to create gps logger using:
Clicker 2 for STM32 + GPS Nano Click + microSD Click
Any instruction or example to help would be appreciated as I'm currently stuck.
thanks!
https://libstock.mikroe.com/projects/do ... .2.2.0.zip
shows error "Error occurred while installing package. Please make sure it is a valid package archive."
the zip file is not corrupted, I can extract enclosed .mpkg files but do not see how to add these individually to Necto studio. After searching I found similar situation here:
viewtopic.php?t=75788
but cannot get instructions to work as the directory structure doesn't match my installation (I am using macosX), there is no directory named 'Packages'. From what I can tell, packages installed by the package manger get installed into:
/Users/<username>/Library/Application Suport/Mikroe/NectoStudio/libs
My project is to create gps logger using:
Clicker 2 for STM32 + GPS Nano Click + microSD Click
Any instruction or example to help would be appreciated as I'm currently stuck.
thanks!