Hi Mark,
Im away to start looking at the using the parameter block for saving network, and my own variables. This wont be updated in the field, only carried out before leaving our offices so we wont be using SWAP system.
1. PARAMETER_BLOCK_START - I assume this is the start of the parameter block location? In my case I am using the 52259, so will be pointing to the last page of the 512k internal flash memory?
2. TEMPORARY_PARAM_SET - I see this is set at 0x8000, what is this used for?
3. As I want to add to the PARS parameter , I will use the TEMPPARS structure as this holds the network and the PARS structures. I will always be saving boath at the same time so do I do the following:
TEMPPARS cparameters;
..... copy the values across here..
fnDelPar(INVALIDATE_TEST_PARAMETER_BLOCK);
fnSetPar((unsigned short)(PAR_NETWORK), (unsigned char *)&cparameters, sizeof(TEMPPARS _PARAMETERS));
4. And to load the parameters, I can use the default on the application.c:
fnGetOurParameters_1()
which will use default originally, then after we set them they will load and use the new values
5. After we update the paramters, we wont be doing it again, as we will be uploading firmware changes. So in this case will the parameter block never be overwritten?
Regards
Neil