Skip to main content
manto.1
Associate III
August 2, 2022
Question

How to save an image in different section then ExtFlashSection

This code works OK and is an example of an image that is not stored in sectionExtFlashSection.

// Generated by imageconverter. Please, do not edit!
 
#include <touchgfx/hal/Config.hpp>
 
 
//LOCATION_PRAGMA("ExtFlashSection")
//KEEP extern const unsigned char image_piklogo[] LOCATION_ATTRIBUTE("ExtFlashSection") = // 800x480 RGB888 pixels.
LOCATION_PRAGMA("LogoSection")
KEEP extern const unsigned char image_piklogo[] LOCATION_ATTRIBUTE("LogoSection") = // 800x480 RGB888 pixels.
{
 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00,

The problem is that this code is rewriten every time I generate code in TouchGFX designer.

Is there a different way to achive what I want.

This topic has been closed for replies.

1 reply

MM..1
Super User
August 2, 2022

Learn use LD linker file script and place arangement for imagepiklogo.o here. I mean this file isnt regenerated.