diff --git a/doc/content/getting-started/programming-software/st-examples/stcubeide/_index.md b/doc/content/getting-started/programming-software/st-examples/stcubeide/_index.md index 65082fb..08ae177 100644 --- a/doc/content/getting-started/programming-software/st-examples/stcubeide/_index.md +++ b/doc/content/getting-started/programming-software/st-examples/stcubeide/_index.md @@ -7,10 +7,26 @@ distributions: null If you are using [STM32CubeIDE](https://www.st.com/en/development-tools/stm32cubeide.html) as your build environment, then using the same tool to program your {{% gnse %}} is convenient. - +{{< figure src="stm32cubeide.png" alt="stm32 cube ide" >}} -## Steps to reproduce +## Running Project -1. To program and run or debug {{% gnse %}}, right-click on it and select ***Run As*** or ***Debug As***. When programming, make sure you select **STM32 Cortex-M C/C++ Application** in the **Run As** or **Debug As** section. +When the [build]({{< ref "/getting-started/se-sw/env-setup/stm32cubeide" >}}) process is done you can flash the binary file to the {{% gnse %}} by running the program from the STM32CubeIDE. -{{< figure src="cubeide.png" alt="cubeide run as" >}} +Right click on the project name in the **Project Explorer** and select **Run As -> STM32 Cortex-M C/C++ Application**. + +{{< figure src="run_as.png" alt="project run as" >}} + +This will start to **flash** the compiled program (bin file) to the {{% gnse %}}. The following figure shows the **Console** output, for example, when running the [basic]({{< ref "/applications/se-basic" >}}) project. + +{{< figure src="file_download.png" alt="file download" >}} + +When the flashing finishes the code will immediately start to run on the {{% gnse %}}. If the program prints text and data to the serial port during the execution they can be displayed on a **Serial Terminal**. The following figure shows the Serial output on [TM Terminal](https://marketplace.eclipse.org/content/tm-terminal), for example, when running the [basic]({{< ref "/applications/se-basic" >}}) project. + +{{< figure src="run_capture.png" alt="serial terminal output" >}} + +The STLINK-V3SET also supports [Drag-and-drop flash programming]({{< ref "/getting-started/programming-software/st-examples/mounting" >}}) of binary files. + +If you want to reset the {{% gnse %}} program that is running, you can press the reset button on the back of the {{% gnse %}} and the current program will start again. + +If everything goes well you can remove {{% gnse %}} from the STLINK-V3SET. \ No newline at end of file diff --git a/doc/content/getting-started/programming-software/st-examples/stcubeide/cubeide.png b/doc/content/getting-started/programming-software/st-examples/stcubeide/cubeide.png deleted file mode 100644 index 6f3a49d..0000000 Binary files a/doc/content/getting-started/programming-software/st-examples/stcubeide/cubeide.png and /dev/null differ diff --git a/doc/content/getting-started/programming-software/st-examples/stcubeide/file_download.png b/doc/content/getting-started/programming-software/st-examples/stcubeide/file_download.png new file mode 100644 index 0000000..066c579 Binary files /dev/null and b/doc/content/getting-started/programming-software/st-examples/stcubeide/file_download.png differ diff --git a/doc/content/getting-started/programming-software/st-examples/stcubeide/run_as.png b/doc/content/getting-started/programming-software/st-examples/stcubeide/run_as.png new file mode 100644 index 0000000..92b92d9 Binary files /dev/null and b/doc/content/getting-started/programming-software/st-examples/stcubeide/run_as.png differ diff --git a/doc/content/getting-started/programming-software/st-examples/stcubeide/run_capture.png b/doc/content/getting-started/programming-software/st-examples/stcubeide/run_capture.png new file mode 100644 index 0000000..91c7adb Binary files /dev/null and b/doc/content/getting-started/programming-software/st-examples/stcubeide/run_capture.png differ diff --git a/doc/content/getting-started/programming-software/st-examples/stcubeide/stm32cubeide.png b/doc/content/getting-started/programming-software/st-examples/stcubeide/stm32cubeide.png new file mode 100644 index 0000000..f347cfb Binary files /dev/null and b/doc/content/getting-started/programming-software/st-examples/stcubeide/stm32cubeide.png differ