taroot
Member level 2
how replace a function in data & program memory during running my code.(Using MikroC)
i have 2 function for example d1() and d2().d1() burned in program memory.i want to replace d1() function that d2() take his memory location.but main() remain old one.d2() will use a bootloader to take place the d1(). 1 thing more that in actual programming name of the both functions will same.i have some queries.
1- did it work i mean main() will call d2() normally.
2- Did any one do that, during runing the program, write the data/program memory.
its basically self flash writing kind of thing.Pic 18f have that ability.
i have 2 function for example d1() and d2().d1() burned in program memory.i want to replace d1() function that d2() take his memory location.but main() remain old one.d2() will use a bootloader to take place the d1(). 1 thing more that in actual programming name of the both functions will same.i have some queries.
1- did it work i mean main() will call d2() normally.
2- Did any one do that, during runing the program, write the data/program memory.
its basically self flash writing kind of thing.Pic 18f have that ability.