Renesas Community
Search Community
User
Join or sign in
Site
Search Community
User
Renesas Engineering Community
FAQ
HELP
More
Cancel
Forums & Groups
English Community
中文社区(Chinese Community)
More
Cancel
かふぇルネ
forums-groups
Microcontrollers and Microprocessors
Other MCU/MPU Products
SH Family
More
Cancel
SH Family
SH Family Forum
static 変数のメモリ割当について
Home
Forum
Tags
More
Cancel
New
Replies
7 replies
Subscribers
447 subscribers
Views
6377 views
Users
0 members are here
hew
static
char
static変数
unsigned
scif_baud
information
4.09.01.007
Version
section
実行時
beginner
Options
Share
More
Cancel
Related
static 変数のメモリ割当について
f_hashi
over 10 years ago
static変数を使用する場合に,実行時にソースコードで記載したstatic変数の内容と実行時のstatic変数の値が異なります.
例えば,A.cのソースコード内に
static unsigned char scif_baud[] = {233};
と書いてあります.
実行時にscif_baudのアドレスに書き込まれている
アドレス(0x1c036724)の値は126となります.
対応方法をご存知の方がいらっしゃいましたら
ご教示お願い致します.
開発環境は
SH7269評価ボード,
μITRONOS:HI7000\,HEW(Version 4.09.01.007)です.
セクションは以下のように設定しています.
[Hew Section Information]
Version=1.0
Entry=3
Group1=C_hivct\,C_hibase\,P_hireset\,P_hiknl\,C_hidef\,
C_hisysmt\,C_hicfg\,P_hisysdwn\,P_hiexpent\,P_hiintdwn\,
P_hicpuasm\,P_hicpuini\,P_hitmrdrv\,C_hitmrdrv\,
P\,C\,D(18040000)
Group2=B_hiwrk\,B_himpl\,B_hidystk\,B_hiirqstk\,
B\,R(1C000000)
Group3=B_hivct(FFF80000)
Parents
f_hashi
over 10 years ago
エビスクラウンさん,f_hashiです.
確かにどちらの方法も行っているのが同じですが,現状,問題が起きていないので,この問題に対しては解決ということで.
ありがとうございました.
質問に対して皆様から早い回答を頂いて大変助かります.今後ともよろしくお願いします.
Cancel
Up
0
Down
Reply
Cancel
Reply
f_hashi
over 10 years ago
エビスクラウンさん,f_hashiです.
確かにどちらの方法も行っているのが同じですが,現状,問題が起きていないので,この問題に対しては解決ということで.
ありがとうございました.
質問に対して皆様から早い回答を頂いて大変助かります.今後ともよろしくお願いします.
Cancel
Up
0
Down
Reply
Cancel
Children
No Data