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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

586 次查看
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 项奖励
回复
5 回复数

554 次查看
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 项奖励
回复

546 次查看
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 项奖励
回复

512 次查看
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 项奖励
回复

473 次查看
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 项奖励
回复

465 次查看
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 项奖励
回复