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 create dummy main() function in Keil?

I am using lpc1768 MCU and id keiluvesion4.

I want to create dummy main() function with different name like mains().

And i want to execute my dummy mains() function. 

In startup file i replaced __main into __mains.

But compiler give error.

Undefined symbol mains (referred from sartuplpc17xx.o).

Parents
  • I want to update my firmware over the air

    So have you looked at how others do that?

    It is a very common requirement indeed - there are plenty of examples on the interwebs.

    Almost certainly, NXP themselves will have an example.

    The lpc1768 was the very first MCU for mbed - so there will be solutions there.

    Google "lpc1768 bootloader" and "lpc1768 firmware update", etc ...

Reply
  • I want to update my firmware over the air

    So have you looked at how others do that?

    It is a very common requirement indeed - there are plenty of examples on the interwebs.

    Almost certainly, NXP themselves will have an example.

    The lpc1768 was the very first MCU for mbed - so there will be solutions there.

    Google "lpc1768 bootloader" and "lpc1768 firmware update", etc ...

Children
No data