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

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

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

跳至解决方案
1,792 次查看
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 解答
817 次查看
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 回复数
817 次查看
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 项奖励
回复
818 次查看
CrasyCat
Specialist III
Hello
 
This is a duplicate of following thread:
 
I am going to put this one as read only now.
 
CrasyCat
0 项奖励
回复
817 次查看
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 项奖励
回复