Pumpkin, Inc.

Pumpkin User Forums

problems using effs-thin

For issues specific to TI's MSP430 line of ultra-low-power microcontrollers, including compilers (e.g. Quadravox AQ430), IDEs (e.g. IAR Embedded Workbench) and development tools (e.g. TI MSP-FET430 Flash Emulation Tool).

problems using effs-thin

Postby karpion » Thu Mar 05, 2009 6:18 am

Hi all,
I'm experiencing some troubles using thin libraries in a Salvo application. I'm trying to work with some tasks but seems that a code line such as:

"file = f_open("CSK_TEMP.txt", "a+");"

stops the scheduler probably (I think) because it's required some time to access to SD data.
This happens switching between serial and i2c interface that however works properly (I'm able to verify this on HyperTerminal) if I comment this line.
I've tried to delay this task with some OS_Delay() but the problem still exsists. I've also tried to use binary semaphores to activate other tasks only after file-reading but I couldn't verify any improvement.
void Task_Access_SD (void)
unsigned long size2;
F_FILE *file;
char c;
for (;

file = f_open("CSK_TEMP.txt", "a+");

CSK_Msg1("Task_Access_SD: Opened file CSK_TEMP.TXT successfully.");
sprintf(strTmp, "Current ticks: %010lu.
", OSGetTicks());


Have you got any suggestion?
Thanks everybody


Posts: 4
Joined: Mon Mar 03, 2008 12:00 am
Location: Italy

Re: problems using effs-thin

Postby aek » Thu Mar 05, 2009 6:38 am

I don't understand the question / problem.

Did you expect a call to f_open() to _not_ take a long time?

Such calls can take a considerable amount of time, depending on the SD card, etc.

The only way to avoid that is to have the EFFS-THIN source code. That costs several thousand $.

So, when working with the EFFS-THIN libraries (that are part of the CubeSat Kit), this is something you have to live with ...


Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 1 guest