Error is caused by using one and the same DMA channels for UART2 and I2C1. It looks like should try Serial instead.
Using Serial instead of UART doesn't send firmware to chPortHalt(). At last!!!
Turned compile optimization on. Not sure about if it works or not but LEDs still blink...