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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,477 Views
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
Labels (1)
Tags (1)
0 Kudos
1 Solution
502 Views
CrasyCat
Specialist III
Hello
 
This is a duplicate of following thread:
 
I am going to put this one as read only now.
 
CrasyCat

View solution in original post

0 Kudos
3 Replies
502 Views
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 Kudos
503 Views
CrasyCat
Specialist III
Hello
 
This is a duplicate of following thread:
 
I am going to put this one as read only now.
 
CrasyCat
0 Kudos
502 Views
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 Kudos