On the other side, plugging in the other USB port for Nucleo-144 STM32F767ZI will be demonstrated by our test code.
2.5.2 Create and Build Project
Similar to previous section, this time, we create a Blinky C/C++ project with board configuration STM32F7xx with Chip family STM32F767xx. And we can also have the project successfully built with Release configuration with the following output:
17:57:31 **** Build of configuration Release for project F767ZI_Blinky ****
Building file: ../system/src/stm32f7-hal/stm32f7xx_hal.c
We also notice the situation change from within bash as follows:
$ Gtk-Message: 18:40:02.578: GtkDialog mapped without a transient parent. This is discouraged.
Flash page at addr: 0x08040000 erasedEraseFlash - Sector:0x5 Size:0x40000
enabling 32-bit flash writes
After finishing flashing the data onto the device, we can even Export device memory into a particular file. Here, we can see, the data is successfully exported.
STLink Gui Flash F767ZI_Blinky.elf to Device
Finally, we can disconnect the device after flashing.
STLink Gui Disconnected
Clearly, stlink-gui is a GUI application to flash built .elf down to the device (a development board with some particular MCU).
Unlike stlink-gui, st-flash is a command line application to flash built .bin down to the embedded device. But, we need firstly build .bin file out from .elf file. Here, we need to use the command arm-none-eabi-objcopy.