cancel
Showing results for 
Search instead for 
Did you mean: 

Successfully run in KEIL but failed to run in IAR.

V.H
Senior

I want to display 2 images in a screen, but it only display 1 image when used IAR to generate code. The project does not make any changes and generates code in KEIL, then it succeeds.

 (The code optimizations is none and CSTACK / HEAP space is large enough in IAR.)

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Romain,

A bug was found in my IAR flashloader, issue was settled when fixed it.

Thank you!:beaming_face_with_smiling_eyes:

View solution in original post

4 REPLIES 4
Romain DIELEMAN
ST Employee

Hi,

Are you working on a custom board or did you use a TouchGFX Board Setup ? If the latter do you also face this issue when running on target from TouchGFX Designer ?

Could you share pictures of the issue ? I suppose this only happens with images ? Where are they stored ?

/Romain

Hi Romain,

1, I working on a custom board;

2, This phenomenon looks like the problem display image;

3, The images I stored in external norflash (used memory-mapped mode);

Below is the problem I encountered:

(Here are 2 images to displayed, RGB background image and Logo image.)

1) Touchgfx simulator:

0693W00000D03DFQAZ.png 

2) Keil Project Effect:

0693W00000D03ErQAJ.png 

3) Iar Project Effect:

0693W00000D03EmQAJ.png 

I used STM32CubeMX + TouchGFX Designer V4.17 to generat code, all the codes are the same except scatter load file:

1)), Keil

LR_DATA 0x90000000 0x800000 {

   ER_DATA_NORFLASH 0x90000000 0x800000 {

       *.o (ExtFlashSection)

   }

}

2)), Iar

define region IMAGE_region = MEM:[from 0x90000000 to 0x907FFFFF];

place in IMAGE_region { section ExtFlashSection };

As A matter of fact, I have debugged the program in Keil, but this kind of problem occurred when I transplanted it to Iar, which puzzled me very much.

Hi Romain,

A bug was found in my IAR flashloader, issue was settled when fixed it.

Thank you!:beaming_face_with_smiling_eyes:

Good to hear it works :thumbs_up:

/Romain