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

Generate a single Hex file from four different projects

Hello Everyone,

I am working on STM32F4.I have four Single Project(P1,P2,P3,P4), each project have their own start-up file, library files & main function. I am able to compile each of the project individually to generate its respective hex files.

Now I want to combine these four projects in to a single multi-project that would generate a single hex file for all of them.

I want to execute the projects in the following sequence:
1. Start-up file of P1 will get executed 1st followed by its main function.
2. Then the control will jump to the start-up file of P2 followed by its main function.
3. Then the control will jump to the start-up file of P3 followed by its main function.

when an system reset is encountered then the control again jumps to P1 & the sequence starts all over again.
I want to call functions of P4 from main functions of P2 & P3 respectively.

So please help me out I am stuck.

Thanks,
Amit

0