cancel
Showing results for 
Search instead for 
Did you mean: 

How to save an image in different section then ExtFlashSection

manto.1
Senior

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.

1 REPLY 1
MM..1
Chief II

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