AN154 GD32VW553 Quick Development Guide Table of Contents Table of Contents ......................2 List of Figures ........................ 4 List of Tables ........................6 Introduction to development board ..............7 1.1. Picture of real development board ................7 1.1.1. The START development board ..................7 1.1.2.
Page 3
AN154 GD32VW553 Quick Development Guide 5.1. Open projects ......................26 5.2. Compilation ........................ 27 5.3. Download firmware....................29 5.4. Debugging ........................30 FAQ ........................32 6.1. No image error ......................32 6.2. Code running in SRAM ....................32 Revision history ....................33...
AN154 GD32VW553 Quick Development Guide List of Figures Figure 1-1. The picture of the START development board ..............7 Figure 1-2. The picture of the EVAL development board ................ 8 Figure 1-3. Development Board Type Configuration ................9 Figure 1-4. List of devices and drivers ....................10 Figure 1-5.
Page 5
AN154 GD32VW553 Quick Development Guide Figure 5-9. Images output ......................... 29 Fogure 5-10 SES IDE image download ....................30 Figure 5-11. MSDK SES Project Configuration Interface ............... 31 Figure 5-12. SES IDE Debug Interface ..................... 31...
AN154 GD32VW553 Quick Development Guide List of Tables Table 1-1. Boot mode........................... 9 Table 7-1. Revision history ........................33...
AN154 GD32VW553 Quick Development Guide Introduction to development board 1.1. Picture of real development board 1.1.1. The START development board The START development board consists of a baseboard and a module equipped with the GD32VW55x Wi-Fi+BLE chip. Figure 1-1. The picture of the START development board Mainly focus on the following parts of the development board, which have been marked in the Figure 1-1.
AN154 GD32VW553 Quick Development Guide 1.1.2. The EVAL development board The EVAL development board consists of a baseboard and a module equipped with the GD32VW55x Wi-Fi+BLE chip. The baseboard lead out many peripheral test ports, such as I2C, IFRP, ADC and so on.
AN154 GD32VW553 Quick Development Guide Figure 1-3. Development Board Type Configuration 1.2. Boot mode GD32VW55x can boot from ROM, FLASH, or SRAM. The level selection of the two pins BOOT0 and BOOT1 in the BOOT SWD box of the development board determines the boot mode. See Table 1-1.
AN154 GD32VW553 Quick Development Guide 1.4. Download interface For START development board, in addition to the firmware download through the debugger mentioned in the previous section, if debugging is not required and only the firmware needs to be downloaded, it can also be downloaded by dragging it into the USB disk. Connect the development board to the computer through a USB cable, and the GigaDevice disk as shown Figure 1-4.
AN154 GD32VW553 Quick Development Guide Building development environment Build a development environment before compiling and downloading the firmware. The development tool currently used is GD32 Embedded Builder and SEGGER Embedded Studio IDE. 2.1. Installation of GD32 Embedded Builder ◼ GD32...
AN154 GD32VW553 Quick Development Guide What developers must know Before getting started with development, first understand the members of the SDK execution program group, how to correctly configure the SDK. 3.1. SDK execution program group SDK will finally generate two main execution programs: MBL (Main Bootloader) and MSDK (Main SDK), which will eventually be downloaded to FLASH to run.
AN154 GD32VW553 Quick Development Guide 3.2.2. SRAM layout The configuration file is GD32VW55x_RELEASE\config\config_gdm32.h. Modify the following macro definition (as Figure 3-3. SRAM layout shows) values to plan the SRAM space occupied by the executable program segments MBL and IMG. These values are offset addresses, and the base address is defined at the beginning of the file.
AN154 GD32VW553 Quick Development Guide macro definition values showed in Figure 3-5. Firmware version No. to specify the version No. In addition, the macro RE_IMG_VERSION is used in Securt Boot to determine the firmware version. MBL only supports local upgrade, while IMG supports online upgrade. The version No.
AN154 GD32VW553 Quick Development Guide GD32 Embedded Builder IDE project This chapter introduces how to compile and debug the SDK under GD32 Embedded Builder IDE. The project group consists of two projects: MBL/MSDK. MSDK includes Wi-Fi protocol stack, BLE protocol stack, peripheral drivers, applications, etc. The MBL is mainly responsible for selecting the correct MSDK firmware from the two (current firmware and OTA firmware) to run.
AN154 GD32VW553 Quick Development Guide Figure 4-3. Open Projects from file System Select the project path GD32VW55x_RELEASE\MBL\project\eclipse, as shown in Figure 4-4. Selecting MBL project path, and click Finish. Figure 4-4. Selecting MBL project path...
AN154 GD32VW553 Quick Development Guide Close the welcome interface, and the MBL project is shown as Figure 4-5. MBL project interface shows. Figure 4-5. MBL project interface ◼ Import the MSDK project In the File menu, click Open Projects from file System, Select the project path GD32VW55x_RELEASE\MSDK\projects\eclipse\msdk, as shown in Figure 4-6.
AN154 GD32VW553 Quick Development Guide Figure 4-7. MSDK and MBL project interfaces 4.2. Compilation ◼ Check the configuration of the project compilation tool Right-click on the project, click on properties, select C/C++ Build -> Settings in order, and on the tab click on toolchain settings., as shown in Figure 4-8.
AN154 GD32VW553 Quick Development Guide Figure 4-9. Compiling the MBL project The compilation result is as shown in Figure 4-10. MBL compilation result. Figure 4-10. MBL compilation result After the compilation is complete, the script MBL\project\mbl_afterbuild.bat will be automatically called to generate mbl.bin and copied to the directory \scripts\images.
AN154 GD32VW553 Quick Development Guide ◼ Compile the MSDK project Right-click the project, and click Build Configurations—>Set Active—><target configuration> in order. as shown in Figure 4-11. target configuration selection, the default target project is msdk. Figure 4-11. target configuration selection Right-click the project again, and click Build Project, The compilation result is as shown in Figure 4-12.
AN154 GD32VW553 Quick Development Guide image-ota.bin is the bin file generated by MSDK project, which can be used for OTA upgrade. image-all.bin is the combination of MBL(mbl.bin) and MSDK(image-ota.bin), the firmware can be used for production, download into FLASH and run.
AN154 GD32VW553 Quick Development Guide Double-click GDB General Debugging to open the interface shown in Figure 4-15. MSDK debug configuration, the c/c++ application has automatically selected msdk\MSDK.elf, you can browse to select different configurations corresponding to elf file, for example, msdk_ffd generated elf The file is located at GD32VW55x_RELEASE\MSDK\projects\eclipse\msdk\ msdk_ffd\MSDK.elf.
AN154 GD32VW553 Quick Development Guide SEGGER Embedded Studio IDE project This chapter introduces how to compile and debug the SDK under SEGGER Embedded Studio IDE. 5.1. Open projects ◼ Open MBL project Open directory: GD32VW55x_RELEASE\MBL\project\segger, double click MBL.emProject to open the MBL SES project. The opened project is shown in Figure 5-1.
AN154 GD32VW553 Quick Development Guide Figure 5-2. MSDK SES Project Interface 5.2. Compilation ◼ Nuclei Toolchain configuration Please put the directory of Toolchain downloaded in subsection 2.3Toolchain download nuclei_riscv_newlibc_prebuilt_win32_2022.04\gcc\bin into the path of environment variable of windows. ◼ SES build tool configuration SES compiles the GD32VW55x project using the riscv32-none-elf toolchain by default.
AN154 GD32VW553 Quick Development Guide Figure 5-4. Compiling the MBL project The compilation result is as shown in Figure 5-5. MBL compilation result. Figure 5-5. MBL compilation result After the compilation is complete, the script MBL\project\mbl_afterbuild.bat will be automatically called to generate mbl.bin and copied to the directory \scripts\images.
AN154 GD32VW553 Quick Development Guide Figure 5-7 MSDK Project Configuration Options After selecting the corresponding configuration, right-click the project and click Build, the compilation result is shown in Figure 5-8 MSDK compilation result. Figure 5-8 MSDK compilation result Image generated by SDK ◼...
AN154 GD32VW553 Quick Development Guide all.bin to the Gigadevice disc to download it. Or download it by clicking Target->Download MSDK in the menu bar, as shown in Fogure 5-10 SES IDE image download. Fogure 5-10 SES IDE image download 5.4.
AN154 GD32VW553 Quick Development Guide Figure 5-11. MSDK SES Project Configuration Interface ◼ Start Debugging Click Debug->GO in the menu bar to debug, click and wait for the image downloading to complete and enter the interface shown in Figure 5-12. SES IDE Debug Interface.
AN154 GD32VW553 Quick Development Guide 6.1. No image error Print ERR: No image to boot (ret = -5). Reason: An error occurs during the previous boot of WIFI_IOT, and the MBL records operation exception of the IMAGE. If another IMAGE is not downloaded or also has a boot exception, this message will be printed.
AN154 GD32VW553 Quick Development Guide Revision history Table 7-1. Revision history Revision No. Description Date Initial release Nov.24.2023 Chapter 2 revision Jan.26.2024 SES IDE project added, GD32 Eclipse IDE updated to GD32 July.17. 2024 Embedded Builder...
Page 34
Important Notice This document is the property of GigaDevice Semiconductor Inc. and its subsidiaries (the "Company"). This document, including any product of the Company described in this document (the “Product”), is owned by the Company under the intellectual property laws and treaties of the People’s Republic of China and other jurisdictions worldwide.
Need help?
Do you have a question about the GD32VW553 and is the answer not in the manual?
Questions and answers