Hi,
I stuck at a point that I am writing:
my .c file contain:
main_task();
{
//my stuff
while(1)
{
Demo_Test();
Demo_Test1();
}
}
Demo_Test() //Placed this function in Specific Flash section (Linker file is attached with this mail that is creating particular section in Flash )
{
//my stuff ..
if( (WaterLevel > 6000) && ((WaterLevel < 8000) ) )
pritnf("Medium level-->> Green Color indication");
else if (WaterLevel > 8000)
pritnf("Medium level-->> Red Color indication");
//my stuff ..
}
Demo_Test1()
{
//my stuff
}
uptill now what i did:
1. Create Section in Linker file:
2. Create Target Task
3. Mass Erase of all Flash Block and Blank Check.
4. Program/verify (By, Use File From launch Config)
5. Execute Target Task.
Now, I am changing my Demo_Test() function like, (basically I am changing Reference Values and writing some other codes in Demo_Test funtion)
Demo_Test()
{
int a, b;
//my stuff ..
if( (WaterLevel > 4000) && ((WaterLevel < 7000) ) )
pritnf("Medium level-->> Green Color indication");
else if (WaterLevel > 7000)
pritnf("Medium level-->> Red Color indication");
else
printf("Under Level --> Yellow Color indication ");
//my stuff ..
}
As I have changed Demo_Test() function so .afx file changed and again I need to execute all function just because some variable values changed and extra stuff added in Demo_Test().
Instead of doing this I want to generate .afx of only Demo_Test() function and want to put this function ( using "Program/Verify" in target task ) in specific section I have created (starting from 0x00070000),
So by placing at correct address and executing only Demo_Test function I can run the whole code without executing main_task and Demo_Test1 functios .
I am stuck at how to generate .afx file of only Demo_test() function??
Regards,
Utsavi Bharuchwala