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

FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on September 4, 2006
has anybody compiled for arm7tdmi with -O0 option using gcc 4.1.1? My OS under at91sam7s256 still crashes without optimalization :(

Janusz

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on September 4, 2006
interesting links for trace/debug:
http://www.embedded.com/showArticle.jhtml?articleID=192202641
http://www.l8night.co.uk/mwynn/gbadev/asmdocs/gba-arm-asm.html

Janusz

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on September 5, 2006
The makefiles for the LPC2000, AT91FR40008 and AT91SAM7X256 ARM7/GCC projects in the download use -O0, so it must be possible.

Using -O0 will make the code and stack useage greater. Is this the problem rather than the code gen?

RE: FreeRTOS under GCC with -O0 option

Posted by acehigh1971 on September 5, 2006
I added the -fomit-frame-pointer option so the frame was not used when calling a function (indeed is not needed) and I can change the optim level without worrying.
Can you test it?

Thanks

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on September 6, 2006
You are my master!!! I have added and OS work with everthing with -O0 flag!!!

Thanks a lot!!!
Janusz

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on September 6, 2006
with -O0 works fine
with -O1 crashes (but it is no this reason -> then gcc uses a lot of stack)
with -O2 works fine

best regards
Janusz

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on September 6, 2006
I was wrong, with -O2 can crash also bu -O0 is great:)

thanks again
Janusz

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on September 6, 2006
reason: -O2 causes more stack usage!

Janusz

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on September 21, 2006
I was having issues with FreeRTOS 4.1.0, GNUARM 4.11 and the LWIP SAM7 demo package until the -fomit-frame-pointer was put into the makefile. The AT91SAM7X256 is running now.

RE: FreeRTOS under GCC with -O0 option

Posted by dennis on February 13, 2007
I experienced the same problem with dsPic.

Does anybody know why Frame Pointer crashes with FreeRTOS? Is it because somehow both are pushing and popping the stack?

Cheers.

Dennis

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on February 13, 2007
Don't suppose you've tried the webserver side of it have you?... cos it's not working here.

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on February 13, 2007
Scratch that, my switch locked up. Sorry :)

RE: FreeRTOS under GCC with -O0 option

Posted by Nobody/Anonymous on February 13, 2007
I think there is a bug in ARM7 GCC that holds the pointer in an invalid place for a few cycles. Search the forum for "-fomit-frame-pointer" and there is an explanation. It may even be in this thread.


[ 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