How to force code one byte aligned

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

How to force code one byte aligned

Jump to solution
818 Views
lvyang
Contributor III

IDE: Code Warrior 5.9.0

MCU type:MPC560P34

I want to force the data flash to 1 byte aligned.

Who can help me, thanks in advance?

Labels (1)
0 Kudos
1 Solution
713 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

please look at the example in the attachment. It shows, how to place constants to flash.

About Alignment, please see following figures:

pastedImage_1.png

pastedImage_2.png

This information could be found in CodeWarrior Help.

Regards,

Martin

View solution in original post

0 Kudos
4 Replies
713 Views
lvyang
Contributor III

Sorry to reply you so late.

Yes,i want to place some structure constants to flash and align it to 1 byte.

0 Kudos
714 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

please look at the example in the attachment. It shows, how to place constants to flash.

About Alignment, please see following figures:

pastedImage_1.png

pastedImage_2.png

This information could be found in CodeWarrior Help.

Regards,

Martin

0 Kudos
713 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

 

I am not sure if I understand your question correct. Do you want to place some constants to flash and align it to 1 byte? If yes, please confirm it. If not, please describe your requirement more detail.

 

Regards,

Martin

0 Kudos
713 Views
martinkovar
Contributor II

Hi,

I am not sure if I understand your question correct. Do you want to place some constants to flash and align it to 1 byte? If yes, please confirm it. If not, please describe your requirement more detail.

Regards,

Martin