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

Inclusion of one project in another

Hi,
I am using an STM32F103 to control an instrument. I have the DfuSe USB bootloader at address 0x08000000-0x08003000 and then my application code from 0x08003000 onwards. These two chunks of code are the outputs of two separate projects and to program the micro requires two separate programming operations.

My question is: how can I combine the two into one? At the Hitex ARM conference someone demonstrated programming a dual core device using uvision and I'm sure they had somehow included the image file from one project into the build of another, but I can't see how to do this. Is there a way to include an .axf file or similar in a project?

Thanks,

Mark

Parents
  • There are many ways. If working with hex files, you can strip the last line from one of the hex files and then concatenate the contents of the next hex file.

    Or you can convert one app (such as the boot loader) into a binary and convert that binary file into an array of C data that you include into the other project and configure this array to be located at an absolute address.

Reply
  • There are many ways. If working with hex files, you can strip the last line from one of the hex files and then concatenate the contents of the next hex file.

    Or you can convert one app (such as the boot loader) into a binary and convert that binary file into an array of C data that you include into the other project and configure this array to be located at an absolute address.

Children
No data