Note: Manually set pin PG8/PG7 to LPUART_RX/LPUART_TX type.Ĭlick Project - Generate Code or click the shortcut icon to generate the code.Ĭhoose the STM32L496ZGT development kit. Since the USB serial port of the NUCLEO-L496ZG development kit is supposed to be connected to the low power serial port (LPUART1) on the MCU by default, instead of the UART1 on F103 platform, the UART1 in the configuration file should be changed to LPUART1, as shown below: Special processing (only for the STM32 L series low-power platforms, skip this step for other platforms) Select the STM32F103C8.ioc configuration file metioned in the Overview section as shown below:Īfter clicking OK, you can see the configuration file generated by Gizwits has been imported to the STM32L496ZGT6 project.ģ. To facilitate developers to port the STM32 source code to other platforms, you can use the project configuration file import function of STM32CubeMX to import the configuration parameters of STM32F103 platform for STM32L496ZGT6 platform, as follows: Since the source code automatically generated by Gizwits contains the STM32CubeMX project configuration file for the corresponding platform, where the relevant driver parameters are already configured. Import the Gizwits configuration template Note: Here chooses Keil 5 as the compiler. Select the MCU you are using on STM32CubeMX (for example, here we choose STM32L496ZGTx), as follows:Ĭlick Project - Setting to set the project location and the corresponding parameters as follows: Note: The directories that need to be ported are: Gizwits, Hal, and Utils. STM32CubeMX project file (take STM32F103C8 platform as an example) The following is the generated source code directory structure. We can generate the source code of STM32F103 platform through Gizwits MCU Code Auto-Generator (For details, see Guide to Gizwits MCU Code Auto-Generator). It integrates ST-LINK/V2-1 and uses STM32L496ZGT6 as the main control board, featuring ultra-low power consumption, a rich peripheral set and etc. The L4 series combines the advantages of low power consumption and high performance. Note: NUCLEO-L496ZG is a new product of the ST Nucleo series development kit. The development kit NUCLEO-L496ZG is used here: We will take the STM32F103 source code project generated in Gizwits Developer Center as an example, and port it to the STM32L496ZGT6 platform using STM32Cube (the way of porting to other STM32 platforms is similar). STM32CubeMX can be downloaded from STM website and installed after registration, this document will not elaborate on it. This document describes how to use STM32CubeMX to port the automatically generated source code for STM32 platform to other MCU platforms. Promote personal type product to enterprise type product.Gizwits and ST Make IoT Development Easy.Generating device QR code for App binding.Real-time data synchronization demo for SNoti service. Using Open API to control virtual device with Postman.Tailoring MCU SDK to Resource-Limited Platform.Porting Common Platform Edition of MCU SDK.Quick start with Android App development.Third-party authentication and re-skin for Android.Push notification integration for Android App.Third-party authentication and re-skin for iOS App.Push notification integration for iOS App.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |