If there are ECC errors coming because of debugger, clear SRAM being used by CM0+
using the macro
$PROJ_DIR$\..\..\debugging\tviibh8m_sc_cm0p.mac => into the macfile input of IAR IDE.