How to change the alignment mode for Kinetis K60 in Codewarrior ?

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

How to change the alignment mode for Kinetis K60 in Codewarrior ?

1,345 次查看
kenansun
Contributor II

Hi everyone,

 

I'd like to change the alignment mode for my K60FN1M0 MCU on the TWRK60F120 evaluation board. I'm using IDE Codewarrior 10.6 and GCC toolkit.

 

In fact, I'm even not sure if it's a compiler configuration or we should change somewhere in the codes manually

 

Please help me, many thanks!

标签 (1)
0 项奖励
回复
2 回复数

1,134 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Kenan:

What is exactly the change you want to do? Is this about something like structure padding/packing? Or about how the linker organizes variables, code and memory space?

Please let us know more details.

Regards!

Jorge Gonzalez

0 项奖励
回复

1,134 次查看
kenansun
Contributor II

Hi Jorge,

Thanks for your reply!

In fact, I'm trying to run FreeRTOS + lwIP communication stack on this TWRK60F120 board. Then in order to configure lwIP, something about the "memory alignment" is needed, which should be set to values like 4, 2, etc.

So, is this "memory alignment" setting declared somewhere in program as a "global variable"? Can we at meantime change it only for some structures or variables in program?

And if the alignment mode is predeclared, usually where should it be, in the liker file?

Thanks very much:smileywink:

0 项奖励
回复