Application with ST self tests added throws Hard fault exception when Code optimization level is set to Medium/High(Balanced) in IAR workbench for ARM v8.22.3. Same application works for Medium/High(Balanced) optimization without ST self tests.
We are using STM32F405RG controller for our project and using ST self tests library for RAM, Flash and clock test. Currently we are trying to use code optimization option from IAR workbench functional safety version 8.22.3 and optimize code at medium...