cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug 071RB touchgfx demo code on IAR IDE?

Tiel
Associate II

Hello,

I am trying to debug Nucleo_017RB touchgfx demo code with IAR IDE.

After build on IAR, I tried to debug Nucleo071RB but failed at ext-flash programming stage. I guess IAR(v9.10.2) do not have right flashloader file.

So when I tried to debug it with stm32CubeIDE, I could confirm it programmed mcu flash and external serial flash well.

So I want to know following.

Q. After flashing external flash with CubeIDE or CubeProgrammer, can I debug source using IAR IDE? how to set up?

Best Regards,

Tiel

3 REPLIES 3
Alexandre RENOUX
Principal

Hello Tiel,

Of course you can debug using IAR ^^

After using CubeProgrammer to download the code, simply click on Debug without downloading in IAR.

/Alexandre

Tiel
Associate II

Dear Alexandre Renoux,

Thanks and I tried as you advised.

After programming using cubeprogrammer, really seems to be able to debug source using IAR IDE.

I have one more question.

When I try to reset using reset icon button, board was reset, but it did not stop at entry point or any breakpoint in "main.c"

when I tried at other source code like lcd driver, breakpoint seems to work.

Do you happen to know why reset operation is not working well? 

Best Regards,

Tiel

Alexandre RENOUX
Principal

Hello Tiel,

I don't remember facing this issue so I'm afraid I don't know what might cause this.

Have you tried restarting entirely the debug ? Click on Cancel Debug and again on Debug without downloading.

/Alexandre