![]() To connect to the board, in this example we'll be using PuTTY we configure it for 115200bps. If we used DHCP, as it is the default, we can check our DHCP server logs or see the device logs. We now need to know the IP address of the board to connect to it. When the firmware starts, the board should signal its state by blinking the blue LED. You'll need to dig for it in your computer. As long as there is only one board plugged in, μVision will find it though we need to know the serial port device to be able to get the log information. You should soon see the blue LED start blinking. When finished, you have to reset your board pressing its reset button. ![]() To flash this firmware to your board, plug it in a USB port and click on the Load icon. In order to build this project, click the Build icon. The Pack Installer will open and install the pack. If you don't have already installed the Keil::MDK-Middleware pack (and its dependencies), you'll see a requester asking you permission to do so. To be able to build this project, you need to have the proper Software Packs to support it. This project is at examples/stm32/nucleo-f746zg-keil-rtx5-mdk Start μVision and open the project if you need a quick start on the ARM Keil MDK and μVision, follow this step by step tutorial. In your project directory, clone the Mongoose Library repository using git Open your web browser and navigate to the board IP address, you should see a nice device dashboardįollow the Build Tools tutorial to setup your development environment.Once the blue LED starts blinking, the example is ready.After initialization, the application starts Mongoose's event loop and blinks a blue LED.The firmware initializes the network see MDK integration below.The firmware initializes the RTOS see RTX5 integration below.Build the example (see below) and run it on a development board.If you want to set a static configuration, do not configure MDK for DHCP and simplify the network initialization The board IP addressing will be provided by a DHCP server.References in this tutorial are for a Nucleo-F746ZG board For all auto-generated files, we've used those places designated for USER_CODE, so all files can be re-generated by STM32CubeMX for newer versions of the firmware packs. The device configuration file, used as the recipe to generate the code for device initialization, is handled by the IDE, we access it through the Run-Time Environment manager. Keil MDK can integrate with STM32CubeMX, and we use it. packed_fs.c - part of the device dashboard example, embeds the Web UI used by the dashboardĪll these files have been grouped in Source Group 1 in the Project Explorer.net.c, net.h - part of the device dashboard example, contains the Web functionality.mongoose.c, mongoose.h - Mongoose Library.syscalls.c - provides a low level function to redirect debug output to a UART.main.c - provides the main() entry point with hardware init, LED blinking and network init.This example is a plain Keil MDK-based project with the following files of interest: Here, we concentrate on the features specific to this embedded platform in the Keil MDK environment. ![]() Take your time to navigate and study the Device Dashboard tutorial. That means: all functionality related to networking can be developed and debugged on a workstation, and then run as-is on an embedded device - and this example is a demonstration of that. Mongoose Library, being cross-platform, allows to develop and run the same code on different platforms. This example is a hardware adaptation of the Device Dashboard that can run on Mac/Linux/Windows. The web UI is fully embedded into the firmware binary, and does not need a filesystem to serve it, making it resilient.Logged users can view/change device settings.The web UI is optimized for size and for TLS usage.User Authentication: login protection with multiple permission levels.Uses Keil RTX5, the MDK Plus or Pro TCP/IP stack, ARM CMSIS Core, ARM CMSIS Driver, and device headers through Software Packs.This tutorial shows how to implement a Web device dashboard using Mongoose Library over RTX5 + MDK on an STM32 Nucleo-F746ZG development board, using the ARM Keil MDK development environment. Device dashboard on NUCLEO-F746ZG - RTX5 + MDK, using Keil MDK Overview
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |