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
  • First off: Address 0x0000001F is not RAM, so whatever you writes to RAM will not hurt the flash.

    Next thing - only your already programmed firmware can write to RAM.

    And it doesn't matter what you write to RAM - as long as it doesn't happen to be data that behaves like the required assembler instructions to do IAP or activate ISP. And even then it will not help you, unless your already existing firmware have a command to jump to these magic RAM bytes.

    But since you are now talking about breaking CRP2 - which can be trivially broken by using ISP and request a full chip erase - it follows that you haven't accidentally locked up your own processor and want to get it erased so you can reprogram it with a better working program.

    The only reason why you want to deactivate CRP2 without doing the trivial full-chip erase, is that you want to circumvent the code protection and extract the existing software. Which is a crime in (almost) all countries in the world. And in a lot of countries it is even criminal to debate different attack methods to try to circumvent copy protection.

    So - why are you here asking for criminal help?

Reply
  • First off: Address 0x0000001F is not RAM, so whatever you writes to RAM will not hurt the flash.

    Next thing - only your already programmed firmware can write to RAM.

    And it doesn't matter what you write to RAM - as long as it doesn't happen to be data that behaves like the required assembler instructions to do IAP or activate ISP. And even then it will not help you, unless your already existing firmware have a command to jump to these magic RAM bytes.

    But since you are now talking about breaking CRP2 - which can be trivially broken by using ISP and request a full chip erase - it follows that you haven't accidentally locked up your own processor and want to get it erased so you can reprogram it with a better working program.

    The only reason why you want to deactivate CRP2 without doing the trivial full-chip erase, is that you want to circumvent the code protection and extract the existing software. Which is a crime in (almost) all countries in the world. And in a lot of countries it is even criminal to debate different attack methods to try to circumvent copy protection.

    So - why are you here asking for criminal help?

Children