Section type conflict error

cancel
Showing results for 
Search instead for 
Did you mean: 

Section type conflict error

289 Views
bamdadslr
Contributor II

Hi,

I am trying to run a code on MCUXpresso with a LPC4088 board. After enabling the "Enable Link-time optimization" option, I am getting this error: 'menuLine' causes a section type conflict with 'Colori'.

This is how I have these two defined:

GUI_RECT menuLine __attribute__((section(".SPIFI")))=
{
0,
25,
480,
25,
};

 

const GUI_COLOR Colori[MAX_SFONDI][9] __attribute__((section(".SPIFI")))={{...},{...},{...}}

 

I would appreciate if someone can help me solving this issue.

5 Replies

236 Views
frank_meyer
Senior Contributor II

> After enabling the "Enable Link-time optimization" option, I am getting this error: 'menuLine' causes a section type conflict with 'Colori'.

Perhaps the SPIFI section is too small in this case, for whatever reason.

I would compare the map files for both cases (with optimization and without), especially the symbols in question.

231 Views
bamdadslr
Contributor II

Dear frank_meyer, thank you for your answer. Where can I find the map file? there is a .map file (attached) in the project directory, but that one does not contain much information, especially not including those variables. 

I appreciate your help.

0 Kudos

216 Views
frank_meyer
Senior Contributor II

MCUXpresso enables map file creation by default.

frank_meyer_0-1656480822670.png

Useful in many instances.

0 Kudos

244 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi bamdadslr 

We couldn't reproduce 

Which demo code do you use? How to reproduce your issue?

Thanks,

Jun Zhang

0 Kudos

228 Views
bamdadslr
Contributor II

Dear ZhangJenni,

It is not a demo example case, I am using my own code. Let me know if you need more details to help me out.

0 Kudos