There are two more strange issues.
1 - debugger doesn't hit main (it is checked in debug menu - i tried both with and w/o "force HW brakpoint")
Even if I setup breakpoint somewhere at the beginning it doesn't stop there.
I have to pause running program, put breakpoint - then it stops at the breakpoint after restarting
Any clue ?
2 - printf cause hard fault - it is set semihost in one place.
Project Properties ->c/c++ Build -> Settings ->Tool Settings ->MCU Linker -> Menaged Linker Scripts -> Library : Redlib (semihost)
Is there other places to set it ?
It was working when I create this project and it was "empty", and I was adding only my code which works. But whenever I use "printf" directly goes to hardfault.