Safety-certified tools Tools for Automotive Applications C-STAT Static analysis C-RUN Runtime analysis Debugging and trace probes
IAR Embedded Workbench for RISC-V now releasedTools for Risc-V
The application runs into a random hardware fault if "Automatic runtime library selection" is disabled. (If the option is enabled, then is there no run-time error).
The project is built with any of the C++ dialects available in IAR Embedded Workbench for ARM version 6.x or newer.
When the project is linked with automatic selection of the IAR libraries, a call to the __iar_cstart_call_ctors method is added by the linker. See Project > Options > Linker > Library > "Automatic runtime library selection".
If the project is linked without the automatic library selection, the linker does not add a call to the __iar_cstart_call_ctors method.
Add a command line option at Project > Options > Linker > Extra Options. Enter this text:
...in the text box.
In this/these version(s) the linker does not have the --extra_init command line option.
The recommendation is to make an explicit function call, for example early in the main() function.
All product names are trademarks or registered trademarks of their respective owners.