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

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

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

1,006 Views
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!

Labels (1)
0 Kudos
2 Replies

795 Views
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 Kudos

795 Views
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 Kudos