User Tools

Site Tools


manual:demos:olimex_stm32p405_gcc

This is an old revision of the document!


ARM-CM4 STM32 Olimex STM32-P405 GCC

Supported firmware update interfaces

UART CAN USB TCP/IP SD-card
Yes Yes Yes No Yes

Development Environment

This demo is targeted towards the Olimex STM32-P405 board, with 1024 kB internal Flash EEPROM and 192 kB internal RAM.

To program the bootloader into the internal flash on the STM32F405 microcontroller, the Segger J-Link JTAG interface was used. However, this is not required if you have another means of programming the internal flash.

To build the demo programs you can use the GNU ARM Embedded toolchain.

Building and programming the Bootloader

Before the bootloader can be used, it needs to be built and programmed into the STM32F405's internal flash memory. The steps in this section only need to be done once.

When using EmBitz, simply open the project file by double-clicking the file: \Target\Demo\ARMCM4_STM32F4_Olimex_STM32P405_GCC\Boot\ide\STM32P405.ebp from the Windows Explorer. To build the bootloader, select Build → Rebuild all target files from the program menu.

The bootloader program is now ready to be programmed into the internal flash memory of the STM32F405. Make sure the Segger J-Link debugger interface it connected to the JTAG connector on the Olimex STM32-P405 board and the other side to your PC via a USB cable. Next, select Debug → Start Debug Session (F8) from EmBitz's program menu to flash the bootloader program. Once done, you can start the bootloader program by selecting Debug → Run (F5) from the program's menu.

Alternatively, you can use your favorite programmer to flash the bootloader using one of the following files, depending on what file type your programmer supports:

  • \Target\Demo\ARMCM4_STM32F4_Olimex_STM32P405_GCC\Boot\bin\openblt_olimex_stm32p405.elf
  • \Target\Demo\ARMCM4_STM32F4_Olimex_STM32P405_GCC\Boot\bin\openblt_olimex_stm32p405.srec

Building the Demo Program

When using EmBitz, simply open the project file by double-clicking the file: \Target\Demo\ARMCM4_STM32F4_Olimex_STM32P405_GCC\Prog\ide\STM32P405.ebp from the Windows Explorer. To build the demo program, select Build → Rebuild all target files from the program's menu.

The output file is

  • \Target\Demo\ARMCM4_STM32F4_Olimex_STM32P405_GCC\Prog\bin\demoprog_olimex_stm32p405.srec

Firmware update procedure

To download the demo program \Target\Demo\ARMCM4_STM32F4_Olimex_STM32P405_GCC\Prog\bin\demoprog_olimex_stm32p405.srec using the bootloader, follow the instructions in the following links, depending on the communication interface you intend to use:

manual/demos/olimex_stm32p405_gcc.1500369011.txt.gz · Last modified: 2019/09/24 22:13 (external edit)