RX113 code doesnt reach main function in debug mode

Hello. Im working with R5F51135 mcu, using E2 lite and IAR 3.10.2. When I download code and start debugging, code doesnt reach main function. I can step through assembly just fine. While investigating I noticed that device gets stuck in a loop while trying to initialize variables. Specifically it gets stuck in ___iar_lz77_init_single2 function. If I program flash using Renesas Flash Programmer code works just fine. So its somehow related to debugger but I have no idea whats wrong. Any ideas?