S32K3 After the variable changes the section attribute, the text section compilation is problematic

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K3 After the variable changes the section attribute, the text section compilation is problematic

585 Views
OCEAN_CEC
Contributor I

I am using s32k311 to complete the function of SPI+DMA communication, I tried to put the buff into the no_cache area, after compiling, I found that the link symbol _text_end ran to the ram area, I don't know if I made something wrong, could you give me some suggestions, thank you!

OCEAN_CEC_1-1715049779106.png

OCEAN_CEC_2-1715049829523.png

 

OCEAN_CEC_0-1715049740927.png

 

0 Kudos
Reply
5 Replies

553 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @OCEAN_CEC,

Can you share the project?

Do you have a screenshot of the error message?

What RTD and compiler version do you use?

 

Regards,

Daniel

 

0 Kudos
Reply

545 Views
OCEAN_CEC
Contributor I

compiler :gcc-10.2-arm32-eabi

RTD: R21-11_3.0.0_P07

HW :S32K310

I discovered the problem when the program ran away,compile without errlog.

0 Kudos
Reply

511 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @OCEAN_CEC,

Can you read the .map file and confirm the variables are correctly placed in the sections?

Is the MPU descriptor correcly configured at the section in system.c?

 

Regards,

Daniel

0 Kudos
Reply

472 Views
OCEAN_CEC
Contributor I

Hi  Daniel

   Thank for your reply. 

   I read system.c and.map, and this variable is actually placed in the area I want. Currently, the MPU is configured using the default project configuration. In my understanding, this should not affect the address of the link symbol.

0 Kudos
Reply

464 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @OCEAN_CEC,

Please share the project so that I can test it.

If you don't want to share it here, create a ticket.

 

Regards,

Daniel

0 Kudos
Reply