Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner