FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2013 Threads] Yagarto tool chain standard IO issuesPosted by Antonio Defina on May 22, 2013 I all,
My name is Antonio. I have a problem with standard I\O functions, in particular with sscanf function. I use Free RTOS on SAM7X micro controller compiled with yagarto tool chain (version 4.7.2). The problem is that sometimes the sscanf does not provide in output the values. For example:
char message[32]; int returnScanf; int getValue;
strcpy(message,"2");
getValue = 5; returnScanf = sscanf(message,"%d",&getValue);
//returnScanf is equal to 1 (correct), but getValue is equal to 0
It is very strange, because sometimes, if I try to compile again the same source code, it sometimes works properly (without changing any header\compiler option, etc.).
I use this compiler options:
COMPILER_GENERAL_OPTIONS= \ -mthumb-interwork \ -mcpu=arm7tdmi \ -T$(LDSCRIPT) \ -Wall \ -g \ -O1\ -fomit-frame-pointer \ -fno-dwarf2-cfi-asm
and linker options:
LINKER_FLAGS=-nostartfiles -Xlinker -o$(PROJECTNAME).$(ARMEXT) -lm -Xlinker -M -Xlinker -Map=$(PROJECTNAME).$(MAPEXT)
Could you please help me to find the possible mistake?
Thanks in advance
RE: Yagarto tool chain standard IO issuesPosted by Richard on May 22, 2013 Is your question FreeRTOS related? Is the behaviour the same when executed from main() before the scheduler has started as from a task after the scheduler has started?
Regards.
RE: Yagarto tool chain standard IO issuesPosted by Antonio Defina on May 31, 2013 Hi,
the source code example is inserted inside a FreeRTOS task.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|