How to force code one byte aligned

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

How to force code one byte aligned

跳至解决方案
1,917 次查看
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?

标签 (1)
0 项奖励
回复
1 解答
1,812 次查看
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 项奖励
回复
4 回复数
1,812 次查看
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 项奖励
回复
1,813 次查看
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 项奖励
回复
1,812 次查看
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 项奖励
回复
1,812 次查看
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