Skip to main content
Epamuk
Associate III
October 28, 2019
Question

Code diferences between IAR and Touchgfx

  • October 28, 2019
  • 4 replies
  • 869 views

Hello, I have a touchgfx project. When I compile project with touchgfx IDE (with Run Target button) It works properly. After that I open IAR IDE, compile and flash to my board but it doesnt work properly. When I debug software, I see there is a hard fault handler.

Is there any difference Touchgfx and IAR compiling process ?

How can I make it same ?

Regards

This topic has been closed for replies.

4 replies

Ozone
Principal
October 28, 2019

Different compilers and different project settings produce different results, for sure.

I would start comparing stack sizes and optimization settings of both projects.

Epamuk
EpamukAuthor
Associate III
October 28, 2019

hello

Where can I find touchgfx stack and optimization settings ? I couldnt find any data about stack and optimization in make file.

Where should I look for these settings ?

Ozone
Principal
October 28, 2019

> Where should I look for these settings ?

You wrote: When I compile project with touchgfx IDE (with Run Target button) ...

I suppose some gcc-based toolchain. Check the IDE's help/tutorials.

I don't work with touchgfx.

Or, you could debug the IAR-WB built solution, and check what fails, and where.

Martin KJELDSEN
Principal III
November 4, 2019

TouchGFX "Run target" button uses makefiles to compile with arm-gcc. Can you tell me more about where this hardfault occurs? Which version of TouchGFX?

/Martin