Quality RTOS & Embedded Software

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




Loading

RTOS SAM7P Olimex. Random Freezes!

Posted by j3sq on November 17, 2014

Hi, I have RTOS running on SAM7P Olimex board. The program has 2 tasks with same priority (1) and is generally working great. However, once every while, the program will freeze indefinitely on the idle task and no task switching happen even if some tasks are in a ready state. What is even more strange is that if I pause execution (using j-link debugger) and immediately resume execution the program will unfreeze and continue to work as expected.

My question, what does pause/resume change in this? and make a code that freeze indefinitely work again? and what things should I look for to investigate this problem.

Notes: -I've some LEDs and serial log where I can tell if task switching happened or not. -I can provide more details or code if required.

Thanks, Jafar


RTOS SAM7P Olimex. Random Freezes!

Posted by davedoors on November 17, 2014

Are you using semihosting to direct printf() output to the J link?


RTOS SAM7P Olimex. Random Freezes!

Posted by j3sq on November 18, 2014

Hi Dave,

I don't think so! (check the attached)! Also, there are no printf,scanf....etc in my code.

Attachments

IAR.PNG (65630 bytes)

RTOS SAM7P Olimex. Random Freezes!

Posted by rtel on November 18, 2014

The configuration shown in the image is not using semihosting. The semihosting options is grayed out because semihosting is not selected in the first place.

Regards.


[ 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