cancel
Showing results for 
Search instead for 
Did you mean: 

Code diferences between IAR and Touchgfx

Epamuk
Associate III

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

4 REPLIES 4
Ozone
Lead

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

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

Epamuk
Associate III

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 ?

> 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
Chief III

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