Try/catch and longjump are not related to PSoCs but to the C compiler you use. On the other hand you are free to capture any of the system interrupts as NMI or the int default handler and to implement some fixups.
1 of 1 people found this helpful
I received an email from Cypress that indicated I could reply to it to answer your post. That failed.
Regardless, I was hoping in what in the past was called a "BSP" (Board Support Package) that someone (Cypress, or anyone else) had supported try/catch in the compiler package that comes with PSoC creator. Embedded Ninja and others indicate that work has not yet been done. So far, no one has reported getting exception handling to work in the PSoC.
Since my timeframe won't stretch to including updating the libraries for PSoC, I went the route of the elm-chan library. Unlike the Cypress licensed Segger library, it does not crash when a card is removed during an attempt to read or write. Unlike the Cypress licensed Segger library, you have access to the source code.
So, for now, I don't need exception handling, and for now my problem is solved. Yes, the question was answered. But, sorry, is a disappointing answer.