This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to running an application code from a microcontroller to another microcontroller?

Hi
I would like to run a function in microcontroller_1 in another microcontroller_2
is it possible?
For example i want to execute this code in microcontroller_2 via microcontroller_1:

LPC_GPIO2->FIOSET=0xffffffff;


or for another example i want to ruuning this code from micro_1 to micro_2:

__disable_irq();
  command[0] = 57;              // Reinvoke ISP command
  iap_entry (command, result);

I mean i want to sent above code from micro_1 to micro_2 and expect to running this code in micro_2. Is it possible?

Parents
  • Another option is to compile the code you want to execute with a cross compiler for the computer that needs to run it and deliver it to the machine. Place the code in RAM, set the PC there and off you go. This is risky of course as it allows for arbitrary code to be executed on the machine, but may be more generic and if you don't have other options (maybe you cannot program flash memory to adjust to new commands...?) it could be your only way out.

Reply
  • Another option is to compile the code you want to execute with a cross compiler for the computer that needs to run it and deliver it to the machine. Place the code in RAM, set the PC there and off you go. This is risky of course as it allows for arbitrary code to be executed on the machine, but may be more generic and if you don't have other options (maybe you cannot program flash memory to adjust to new commands...?) it could be your only way out.

Children