How to force code one byte aligned

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to force code one byte aligned

ソリューションへジャンプ
859件の閲覧回数
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 解決策
754件の閲覧回数
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 返答(返信)
754件の閲覧回数
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 件の賞賛
755件の閲覧回数
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 件の賞賛
754件の閲覧回数
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 件の賞賛
754件の閲覧回数
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