KEA cw11 global variable specific addr

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

KEA cw11 global variable specific addr

跳至解决方案
572 次查看
sam_lgu
Contributor I

hi, everyone !

could anybody tell me how to define one global variable at specific addr ?

i tried "attribute" command, the ide told me it was ignored!

thanks

0 项奖励
回复
1 解答
569 次查看
ErichStyger
Specialist I

I assume you are using gcc?

Then the following shall work:

https://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/

 

I hope this helps,

Erich

在原帖中查看解决方案

0 项奖励
回复
1 回复
570 次查看
ErichStyger
Specialist I

I assume you are using gcc?

Then the following shall work:

https://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/

 

I hope this helps,

Erich

0 项奖励
回复