Quality RTOS & Embedded Software

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


Loading

HCS12X port and portENABLE_INTERRUPTS()

Posted by Sergey on May 24, 2012
Hi All.
I use 3 ISR: ECT for system tick counter, CAN and PIT timer.
I set priority:
PIT timer is 7 ( highest ),
CAN is 6,
ECT is 5 ( lowest ).
I want something to FreeRTOS don`t disable global interrupt, macros portENABLE_INTERRUPTS() I do empty.
After that, the program stops working, it crash.
Why? Ыo you can not do at all?
Best regards,
Sergey.

RE: HCS12X port and portENABLE_INTERRUPTS()

Posted by Richard on May 24, 2012
As far as I recall, the HCS12 port does not support nested interrupts.

RE: HCS12X port and portENABLE_INTERRUPTS()

Posted by Erich Styger on May 24, 2012
HCS12 only has one interrupt inhibit bit, so no nested interrupts. You *could* re-enable interrupts in the ISR, but this will enable *all* interrupts. To the extend that even a lower priority interrupt can occur. That's usually not what you want.
So indeed: nested interrupts for HCS12 is not supported (by the hardware, and by the port).

RE: HCS12X port and portENABLE_INTERRUPTS()

Posted by Sergey on May 24, 2012
Sory,
I are confused. Must be portDISABLE_INTERRUPTS() is empty.
In general, both are not used.
Best regards,
Sergey.

RE: HCS12X port and portENABLE_INTERRUPTS()

Posted by Sergey on May 24, 2012
The problem is that in highest priority PIT timer ISR managed hardware with period 25 us.
If I disabled global interrupt I get a bid jitter.
This is critical for my application.
Sergey.


[ 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