Support for Exception in IAR Embedded Workbench

Colleagues,

I’m trying to use exceptions in Embedded workbench. But this line of code:

throw Exception(FACILITY_I2C, ERR_ERROR); // Exception(...) is a custom class

Generates this compile-time error:

Error[Pe540]: support for exception handling is disabled

Can the support for exceptions be enabled? If so, then how?

Cheers,

  • Nick

Resolution: EWARM supports Embedded C++, which is a subset of C++ that doesn’t have exceptions.

Update: IAR promises that the next version of EWARM, which is scheduled for Feb 2010 will have a fully implemented C++.

Have you first listed and contrasted like kind products available today?

What void will you fill?

stevech:
Have you first listed and contrasted like kind products available today?

I'm evaluating IAR and Keil, if you're asking about compilers. I've downloaded evaluation versions for both of them (EWARM 5.11 and uVision4) and I'm using them for a real R&D project. Initially i was in favor of IAR. Keil, however, is emerging as a winner. I will post my comparison some time soon.

stevech:
What void will you fill?

My inner void.

I evaluated in depth Keil, IAR, GCC/Rowley, GCC/YAGARTO, ImageCraft.

I chose IAR and have been using it for a year, for ARM7. I’ve pleased and the phone Q&A (West Coast) has been fine.

I just preferred IAR’s IDE/quick learning curve, ease of use, J-Link flash breakpoint transparency. C99 support. Reasonable price.

Keil is probably a good choice too.