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
  • If you have code-protected the chip, then you are limited to the documented ways to unlock it - or spend own time trying to figure out design errors.

    A good rule - make sure you have a way to erase a chip or have an interface for sending commands to do IAP before you code-protect it.

    If you did CRP2 - then connect using serial port (FlashMagic) and do a complete erase.

    If you did CRP3 - use the IAP-interface you have already carefully implemented and tested to erase the chip or change firmware or copy repair code into RAM and run or jump into the ISP boot loader. You didn't implement a working IAP interface or a way to enter the ISP? Consider getting a new chip. Or a new board if you don't like soldering.

Reply
  • If you have code-protected the chip, then you are limited to the documented ways to unlock it - or spend own time trying to figure out design errors.

    A good rule - make sure you have a way to erase a chip or have an interface for sending commands to do IAP before you code-protect it.

    If you did CRP2 - then connect using serial port (FlashMagic) and do a complete erase.

    If you did CRP3 - use the IAP-interface you have already carefully implemented and tested to erase the chip or change firmware or copy repair code into RAM and run or jump into the ISP boot loader. You didn't implement a working IAP interface or a way to enter the ISP? Consider getting a new chip. Or a new board if you don't like soldering.

Children