![]() These boards have a built-in ST-Link debugger, which also provides a USB serial port wired to PD8 and PD9. You should soon see the blue LED start blinking Now click on the green arrow icon, accept the debug configuration, and your board will be flashed with this code. Using some HAL functions we'll toggle the pin and wait for 500ms inside the main loop: HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_7) Ĭlick on the hammer icon again, that will build the project: Once this is done, we can write our blink code in Core/Src/main.c. Now select the project and click on the hammer icon, that will generate the base project structure. On the Nucleo-H743ZI2 board, the LED is yellow and is connected to GPIO PE1. Skip this if you created the project through the Board Selector, choose the proper pin for other boards: The blue LED in the Nucleo-F746ZG and Nucleo-F429ZI boards is connected to GPIO PB7, so click on pin PB7 and choose GPIO_Output. We are now ready to go.Īt the device configuration wizard, we'll configure the proper GPIO pin as an output. If this is your first time with Cube or this device family, Cube will download the firmware package, containing the HAL for this device family, and install it after you agree to its license terms and conditions.If you chose the MCU/MPU Selector, we'll be configuring necessary GPIOs as we need them.We just need it to configure our GPIOs and avoid generating unnecessary driver code. If you chose the Board Selector, Cube will ask if you want to initialize all peripherals to their default mode, answer No.This will be a C language project in which we'll generate an executable. Pick a name for your project, and check the project location.If you go with the device selection instead, choose the MCU/MPU Selector tab, then type and select your device commercial part number, e.g.: STM32F746ZGT6, then click Next.You'd probably want to mark it as favorite, as you will be making several projects for it. If you go with the board initialization, choose the Board Selector tab, type and select your board commercial part number, e.g.: NUCLEO-F746ZG, then click Next.If you are developing on a custom board, then choose your device. The easiest way, if you have a commercial development board, is to go with it. The target selector will open, here we can mainly select an MCU/MPU (like the STM32F746ZG) or a board (like the Nucleo-F746ZG).Otherwise, follow the menu File -> New -> STM32 Project.If you have an empty workspace, click on "Create a New STM32 project".Start STM32CubeIDE and create a new project.We provide instructions for NUCLEO-F746ZG, NUCLEO-F429ZI, and NUCLEO-H743ZI2. This tutorial is a step-by-step guide on how to build a Mongoose-based Web UI dashboard on a NUCLEO development board using the STM32CubeIDE development environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |