2021-07-14 09:00 PM
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.)
Solved! Go to Solution.
2021-07-20 12:00 AM
Hi Romain,
A bug was found in my IAR flashloader, issue was settled when fixed it.
Thank you!:beaming_face_with_smiling_eyes:
2021-07-19 05:19 AM
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
2021-07-19 06:05 PM
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:
2) Keil Project Effect:
3) Iar Project Effect:
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.
2021-07-20 12:00 AM
Hi Romain,
A bug was found in my IAR flashloader, issue was settled when fixed it.
Thank you!:beaming_face_with_smiling_eyes:
2021-07-20 01:11 AM
Good to hear it works :thumbs_up:
/Romain