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] [November 2012 Threads] Catching an exception from within a taskPosted by FuzzyBit on November 1, 2012 Hi! Currently working with CCS v5.1 compiling code for an ARM MCU LM3S1968 Cortex-M3 using tms470, v4.9.1. For the time being, I am using FreeRTOS v6.0.5.
I am programming c++ and compiler options have been set to support "GCC extensions" and "C++ exception handling".
My problem: catching an exception from within a running task when an object is throwing the exception
THIS WORKS: having a try-catch inside my task and explicitly throwing an exception. The exception is caught in the exception handler as expected to. All well! try{ throw 5; } catch(int& e) { //exception is caught :-) }
THIS DOES NOT WORK (for me): when an object inside the try-block raises an exception it never gets caught.
Myclass my1; try{ my1.MethodThrowsException(); } catch(...) //regardless of what I put here { exception is never caught :-( } Can anyone explain why? Is there a workaround?
Any help would be highly appreciated
RE: Catching an exception from within a taskPosted by Richard on November 2, 2012 Sorry - there is no official CCS5 CM3 port, and C++ is not supported. All I can do is direct you to the FreeRTOS Interactive site where several people have provided C++ projects and frameworks, to see if there is anything there that can assist you. You might also be able to search through the support archive as C++ usage is discussed periodically.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|