Skip to main content
V.H
Senior
July 15, 2021
Solved

Successfully run in KEIL but failed to run in IAR.

  • July 15, 2021
  • 4 replies
  • 1351 views

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.)

This topic has been closed for replies.
Best answer by V.H

Hi Romain,

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

Thank you!:beaming_face_with_smiling_eyes:

4 replies

Romain DIELEMAN
ST Employee
July 19, 2021

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

V.H
V.HAuthor
Senior
July 20, 2021

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.