Additions: I was used version 1.1 of embedded profiler framework.
After updating to latest version 3.1 I’m getting the same error but commenting out the line with
s_SamplingProfilerTimer.Init.RepetitionCounter = 0;
doesn’t solve a problem, the compiler now says this:
1>ProfilerDriver_STM32_HAL.cpp
1>C:\Users\WAVIOT~1\AppData\Local\Temp\cc81gx2V.s: Assembler messages:
1>C:\Users\WAVIOT~1\AppData\Local\Temp\cc81gx2V.s(343): error : immediate value out of range