Anniyan_x
Member
can we just boatload a specific "function" of a full application code into a microcontroller ( let say its a PIC18F), so that we can update
a specific part of the firmware but not the whole firmware. for e.g
let say we have:-
// START
init_hardware();
void main (void);
{
while(1)
{
scan_input();
run_logic_program();
update_outputs():
}
}
//functions/subroutines
void scan_input ()
{
}
void run_logic_programs();
{
}
void update_output();
{
}
...........
the idea is something like this:-
so i write my logic programs function which will take the input values in and update the output values accordingly , and as per that i just wan to bootload the [run_logic_programs()] functions only,so that i can stimulate something like a simple PLC (programmable logic controller) concept,in sense that i write my run_logic_programs() as how i like it,e.g i can rewrite my run_logic_programs() functions, e.g changing the combination logic,timing and etc and then recompiled that particular function only and update it to the application firmware using bootloading method.
is it so called the RELOCATEABLE memory type of programming??? i know we can update whole firmware using the bootloader, but how about a particular code or functions?? what is the method or direction to study/follow to achieve this??? any ideas.....
a specific part of the firmware but not the whole firmware. for e.g
let say we have:-
// START
init_hardware();
void main (void);
{
while(1)
{
scan_input();
run_logic_program();
update_outputs():
}
}
//functions/subroutines
void scan_input ()
{
}
void run_logic_programs();
{
}
void update_output();
{
}
...........
the idea is something like this:-
so i write my logic programs function which will take the input values in and update the output values accordingly , and as per that i just wan to bootload the [run_logic_programs()] functions only,so that i can stimulate something like a simple PLC (programmable logic controller) concept,in sense that i write my run_logic_programs() as how i like it,e.g i can rewrite my run_logic_programs() functions, e.g changing the combination logic,timing and etc and then recompiled that particular function only and update it to the application firmware using bootloading method.
is it so called the RELOCATEABLE memory type of programming??? i know we can update whole firmware using the bootloader, but how about a particular code or functions?? what is the method or direction to study/follow to achieve this??? any ideas.....