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?

Parents
  • Hello dear Paumas, Thank you for posting to the Renesas community. 
    According to your statements, your problem might be because of mismatching clocks between hardware and debugger, or debug feature activation.

    Please check the settings below: 

    1-Make sure the debug feature is set in the smart configurator setting

    2-Debugger is configured properly

       

    3- Working frequency is set properly In the e2 debugger setting, if you're using an external crystal make sure it's checked and the correct value is specified. 

    I hope this information was helpful. If you require any further assistance, please don't hesitate to ask.

    Best regards. Hossein

    If this or any other user's response answers your concern, kindly verify the answer. Thank you!

    Renesas Engineering Community Moderator
    https://community.renesas.com/
    https://academy.renesas.com/
    en-support.renesas.com/.../

Reply
  • Hello dear Paumas, Thank you for posting to the Renesas community. 
    According to your statements, your problem might be because of mismatching clocks between hardware and debugger, or debug feature activation.

    Please check the settings below: 

    1-Make sure the debug feature is set in the smart configurator setting

    2-Debugger is configured properly

       

    3- Working frequency is set properly In the e2 debugger setting, if you're using an external crystal make sure it's checked and the correct value is specified. 

    I hope this information was helpful. If you require any further assistance, please don't hesitate to ask.

    Best regards. Hossein

    If this or any other user's response answers your concern, kindly verify the answer. Thank you!

    Renesas Engineering Community Moderator
    https://community.renesas.com/
    https://academy.renesas.com/
    en-support.renesas.com/.../

Children