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 + 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) 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