Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Yagarto tool chain standard IO issues

Posted 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 issues

Posted 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 issues

Posted by Antonio Defina on May 31, 2013
Hi,

the source code example is inserted inside a FreeRTOS task.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists