Not all code lines were compiled unless I declare local (stack) variables as 'volatile'.
View all questions in Arm Compilers forum