Quality RTOS & Embedded Software

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




Loading

FreeRTOS + STR912 with Ride7

Posted by mkyrylen on October 21, 2010
Hi,

I am trying to convert an existing 'bare metal' application to utilising FreeRTOS. I am new to FreeRTOS.
Currently we are running a bootloader in Bank 1 of flash, which starts the main application in Bank 0. FreeRTOS is to only run in the main application. Bootloader has not been modified, but the main application has its own complete startup crt0.S (only flash is not reconfigured, since it is setup correctly in bootloader).

Based on a STR91x port of FreeRTOS, which uses Eclipse (search for STF12), I have modified my crt0.S to match the STF12 crt0.S by:
- using portSAVE_CONTEXT and portRESTORE_CONTEXT for IRQ and SWI handlers
- changing the mode to supervisor (MSR CPSR_c, #Mode_SVC|I_BIT|F_BIT) at the end of the stack setup
port.c and portISR.c we obtained from STF12

My testing involves trying to send data to UART0. I try to do this before the scheduler is started and on the starting of a single task. The text has never displayed within the task, and also does not display before scheduler started with the above configuration [if I remove some of the above crt0.S changes, the text starts displaying before scheduler starts].

I have looked at other ports, and tried any differences. So far no joy getting the above going.
Any pointers? I can provide further details if needed.

Thanks for any assistance,
Mykola

RE: FreeRTOS + STR912 with Ride7

Posted by Dave on October 22, 2010
If you configure your interrupt to use the save and restore context then it would be wrong to try and use the interrupt before the scheduler has started. If trying to use the interrupt before the scheduler has started did not cause a crash then I think the interrupts are probably just globally disabled. Did you try putting a break point in the interrupt to see if it is hit?

The contrib part of the FreeRTOS site (http://interactive.freertos.org) has some files posted by somebody called Stefano. He also has his own website with lots of FreeRTOS stuff that uses GCC (as Ride does). Did you see these?


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS