Hi experts,   It seems some asked this kind question befo...

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

Hi experts,   It seems some asked this kind question befo...

ソリューションへジャンプ
1,788件の閲覧回数
SofTA
Contributor I
Hi experts,
 
It seems some asked this kind question before but I could not find an answer suite for me so please excuse me to ask the question again.
 
I want to save some calibration data. I am using MC9S08QE128. How can I decide the dest address in SetBlockFlash() function in IntBean? Thanks a lot.
 
Softa
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
813件の閲覧回数
CrasyCat
Specialist III
Hello
 
This is a duplicate of following thread:
 
I am going to put this one as read only now.
 
CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
813件の閲覧回数
SofTA
Contributor I
Hi Crasycat,
 
Thank you for the help. I may not state me question clearly. I am new to PE. As I understand, my program code compiled in PE platform also use flash memory. I do not worry too much about the address of the data I want to save because I think I can use &data to get the address. But I don't know where to save it safely without overwriting my program code. For example, if I write it to address 0x08000, how do I know or control that the address 0x08000 is only used by me but not the compiler? Maybe my quesion is too rudimentary :smileyhappy:
 
I checked the PE build-in help. It has described each bean function, the address format and etc. But it gives me no guildeline or example how to make a choice where to save a block. Or maybe I can ask the question this way: if you are going to use the SetBlockflash() to save a variable where are you going to save it? What are you going to check or set it up before you make the decision? What is your thought process to make the decision? Can you just save it to any address within the address map and the compiler will know that?
 
Many thanks in advance.
 
Softa
0 件の賞賛
返信
814件の閲覧回数
CrasyCat
Specialist III
Hello
 
This is a duplicate of following thread:
 
I am going to put this one as read only now.
 
CrasyCat
0 件の賞賛
返信
813件の閲覧回数
CrasyCat
Specialist III
Hello
 
This mainly depends how you are using the bean.
Usually you specify the flash address in as parameter to the function IFsh1_SetByteFlash
 
The on-line help provides you information about typical bean usage.
 
To get help on a bean:
  Click with the right mouse button on the bean in the ProcessoprExpert Tab within the .mcp window
  Select help
 
You will get on line help on the bean itself. Then click on "Typical Usage" to see typical usage scenario. 
 
CrasyCat
0 件の賞賛
返信