This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
manual:demos:olimexino_stm32_truestudio [2018/06/07 12:15] voorburg [Building and programming the Bootloader] |
manual:demos:olimexino_stm32_truestudio [2018/06/07 12:16] voorburg [Building the Demo Program] |
||
---|---|---|---|
Line 45: | Line 45: | ||
===== Building the Demo Program ===== | ===== Building the Demo Program ===== | ||
- | To build the user program, open a command prompt in directory **\Target\Demo\ARMCM3_STM32F1_Olimexino_STM32_GCC\Prog\** and run the command: | + | Set the project as the active project in Eclipse. This is achieved by clicking the **Prog** project in the //Project Explorer// to select it. Next, select //Project -> Rebuild Project// from the menu to compile all the user program sources and link them together into the final executable. |
- | + | ||
- | <code> | + | |
- | make clean all | + | |
- | </code> | + | |
- | + | ||
- | The expected output is: | + | |
- | + | ||
- | <code> | + | |
- | +++ Cleaning build environment | + | |
- | +++ Clean complete | + | |
- | +++ Assembling [startup_stm32f10x_md.S] | + | |
- | +++ Compiling [boot.c] | + | |
- | +++ Compiling [main.c] | + | |
- | ... | + | |
- | +++ Linking [demoprog_olimexino_stm32.elf] | + | |
- | ... | + | |
- | +++ Build complete [demoprog_olimexino_stm32.srec] | + | |
- | </code> | + | |
The output file is | The output file is | ||
- | * \Target\Demo\ARMCM3_STM32F1_Olimexino_STM32_GCC\**Prog**\bin\**demoprog_olimexino_stm32.srec** | + | * \Target\Demo\ARMCM3_STM32F1_Olimexino_STM32_TrueStudio\**Prog**\Debug\**demoprog_olimexino_stm32.srec** |
===== Firmware update procedure ===== | ===== Firmware update procedure ===== |