FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2012 Threads] 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|