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

STM32F103 Ride7 demo FreeRTOS - Hard Fault

Posted by Thomas Jespersen on January 22, 2012
Hi everybody.
I am new to FreeRTOS and have been looking hard on the internet to find a simple example with some LEDs blinking using the tasking feature in FreeRTOS, but I haven't been able to find it.
So I started ripping off everything unnecessary from the CORTEX_STM32F103_GCC_Rowley demo, though I would actually like to use Ride7!
After much struggling I finally managed to compile with the standard Startup and Script file - I don't know if I should make any changes?

But of course it didn't work. As I have read on different posts the problem seems to lie in the StdPeriph and CMSIS. Though I am using version 3.5.0 of StdPeriph which includes version 3.1.0 of the CMSIS. Is this supposed to work or not?
After some debugging I have managed to not getting it into Hard Fault but instead it stops at executing the assembler lines in the vPortStartFirstTask routine.

I would like to know if any of you have a Blink example for the new/most recent version of the StdPeriph - or something around that version?

Thank you

Best Regards
Thomas Jespersen

RE: STM32F103 Ride7 demo FreeRTOS - Hard Fault

Posted by Richard on January 22, 2012
There is a RIDE project in FreeRTOS - although it is very old:
http://www.freertos.org/RTOS_Demo_STM32_Primer_Ride.html

With ST you have to ensure the interrupt priority bits are all set to preemption priority, rather than sub priority, to make your life easier. ST seem to stand out from the crowd by not doing that by default. Using the ST library, it is normally done using

NVIC_PriorityGroupConfig( NVIC_PriorityGroup_4 );


If their drivers use something else internally then it will make life hardware for sure.

Regards.


[ 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