This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
manual:demos:nucleo_g071rb_gcc [2019/08/13 15:23] voorburg created |
manual:demos:nucleo_g071rb_gcc [2019/08/13 15:29] voorburg [Building the Demo Program] |
||
---|---|---|---|
Line 27: | Line 27: | ||
===== Building and programming the Bootloader ===== | ===== Building and programming the Bootloader ===== | ||
- | Before the bootloader can be used, it needs to be built and programmed into the STM32F091's internal flash memory. The steps in this section only need to be done once. | + | Before the bootloader can be used, it needs to be built and programmed into the STM32G071's internal flash memory. The steps in this section only need to be done once. |
- | To build the bootloader, open a command prompt in directory **\Target\Demo\ARMCM0_STM32F0_Nucleo_F091RC_GCC\Boot\** and run the command: | + | To build the bootloader, open a command prompt in directory **\Target\Demo\ARMCM0_STM32G0_Nucleo_G071RB_GCC\Boot\** and run the command: |
<code> | <code> | ||
Line 40: | Line 40: | ||
+++ Cleaning build environment | +++ Cleaning build environment | ||
+++ Clean complete | +++ Clean complete | ||
- | +++ Assembling [startup_stm32f0xx.S] | + | +++ Assembling [startup_stm32g071xx.s] |
- | +++ Compiling [main.c] | + | |
+++ Compiling [hooks.c] | +++ Compiling [hooks.c] | ||
+ | +++ Compiling [main.c] | ||
... | ... | ||
- | +++ Linking [openblt_stm32f091.elf] | + | +++ Linking [openblt_stm32g071.elf] |
... | ... | ||
- | +++ Build complete [openblt_stm32f091.srec] | + | +++ Build complete [openblt_stm32g071.srec] |
</code> | </code> | ||
- | The bootloader program is now ready to be programmed into the internal flash memory of the STM32F091. Using your favorite programmer (i.e. OpenOCD or STM32 ST-Link utility), flash the bootloader using one of the following files, depending on what file type your programmer supports: | + | The bootloader program is now ready to be programmed into the internal flash memory of the STM32G071. Using your favorite programmer (i.e. OpenOCD or STM32 ST-Link utility), flash the bootloader using one of the following files, depending on what file type your programmer supports: |
- | * \Target\Demo\ARMCM0_STM32F0_Nucleo_F091RC_GCC\**Boot**\bin\**openblt_stm32f091.elf** | + | * \Target\Demo\ARMCM0_STM32G0_Nucleo_G071RB_GCC\**Boot**\bin\**openblt_stm32g071.elf** |
- | * \Target\Demo\ARMCM0_STM32F0_Nucleo_F091RC_GCC\**Boot**\bin\**openblt_stm32f091.srec** | + | * \Target\Demo\ARMCM0_STM32G0_Nucleo_G071RB_GCC\**Boot**\bin\**openblt_stm32g071.srec** |
===== Building the Demo Program ===== | ===== Building the Demo Program ===== | ||
- | To build the user program, open a command prompt in directory **\Target\Demo\ARMCM0_STM32F0_Nucleo_F091RC_GCC\Prog\** and run the command: | + | To build the user program, open a command prompt in directory **\Target\Demo\ARMCM0_STM32G0_Nucleo_G071RB_GCC\Prog\** and run the command: |
<code> | <code> | ||
Line 66: | Line 65: | ||
<code> | <code> | ||
- | +++ Cleaning build environment | + | +++ Cleaning build environment |
- | +++ Clean complete | + | +++ Clean complete |
- | +++ Assembling [startup_stm32f0xx.S] | + | +++ Assembling [startup_stm32g071xx.s] |
- | +++ Compiling [boot.c] | + | +++ Compiling [main.c] |
- | +++ Compiling [main.c] | + | +++ Compiling [boot.c] |
... | ... | ||
- | +++ Linking [demoprog_stm32f091.elf] | + | +++ Linking [demoprog_stm32g071.elf] |
... | ... | ||
- | +++ Build complete [demoprog_stm32f091.srec] | + | +++ Build complete [demoprog_stm32g071.srec] |
</code> | </code> | ||
The output file is | The output file is | ||
- | * \Target\Demo\ARMCM0_STM32F0_Nucleo_F091RC_GCC\**Prog**\bin\**demoprog_stm32f091.srec** | + | * \Target\Demo\ARMCM0_STM32G0_Nucleo_G071RB_GCC\**Prog**\bin\**demoprog_stm32g071.srec** |
===== Firmware update procedure ===== | ===== Firmware update procedure ===== |