Libstock exclusive: FAT32 and Network Ethernet Libraries

General discussion on Libstock website & codes posted on this website.
Author
Message
User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Libstock exclusive: FAT32 and Network Ethernet Libraries

#61 Post by stefan.filipovic » 10 Oct 2019 10:40

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,
Stefan Filipović

Richie
Posts: 50
Joined: 21 Feb 2010 19:41

Re: Libstock exclusive: FAT32 and Network Ethernet Libraries

#62 Post by Richie » 13 Oct 2019 11:51

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

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Libstock exclusive: FAT32 and Network Ethernet Libraries

#63 Post by stefan.filipovic » 14 Oct 2019 16:14

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,
Stefan Filipović

halexande@me.com
Posts: 1
Joined: 26 Mar 2022 13:47

Re: Libstock exclusive: FAT32 and Network Ethernet Libraries

#64 Post by halexande@me.com » 09 Apr 2022 16:02

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!

Post Reply

Return to “Libstock Discussion”