2828 views|1 replies

155

Posts

1

Resources
The OP
 

2. GD32L233C-START environment construction [Copy link]

Let me post a photo first. The board has been soldered with pin headers and sockets. In order to adapt to the Arduino Uno expansion board in my hand, I chose to solder the female socket. By the way, I mentioned in the previous article that I found the information on setting up the Arduino development environment, but it turned out to be a false alarm. First of all, the Arduino environment supports a small number of GD MCUs. Secondly, the resources are not updated in time and the links are invalid. It seems that I can't try "Arduino is really good" for the time being.

-------------------------------------------------------------------------Arduino steps into the pit, still stuck in it (written to help other friends avoid the pit) ---------------------------------------------------------------------------

I started with embedded Linux and ARM7, and I was originally disdainful of Arduino, but after using it, I said it was "really good". Therefore, I always want to try Arduino for new boards.

There is an Arduino building tutorial on the GD official website, but there are pitfalls.

The address given in the manual could not be accessed, so I searched for GD32 on github and searched according to the user name "ChazJin". I found this address: https://github.com/ChazJin/gd32mcu/blob/main/package_gd32_index.json, and got the correct json file from it.

{
  "packages": [
    {
      "name": "GD32",
      "websiteURL": "https://www.gigadevice.com/",
      "maintainer": "GigaDevice",
      "email": "",
      "help": {
        "online": "https://www.gigadevice.com/"
      },
      "platforms": [
         {
          "name": "GD32 ARM Boards",
          "architecture": "gd32",
          "version": "1.0.0",
          "category": "Contributed",
          "url": "https://github.com/ChazJin/arduino_cores/releases/download/1.0.0/gd32-1.0.0.zip",
          "archiveFileName": "gd32-1.0.0.zip",
          "checksum": "SHA-256:db7148d25d16c57a630ada89fe30979523e92e34e2dfd1f6389fcd99c283f34e",
          "size": "573459",
          "boards": [
            {
              "name": "GD32F307VG MBED"
            },
            {
              "name": "GD32F307VC EVAL"
            },
            {
              "name": "GD32F303ZE EVAL"
            }
          ],
          "toolsDependencies": [
            {
              "version": "9.2.1-1.1",
              "name": "xpack-arm-none-eabi-gcc",
              "packager": "GD32"
          },
          {
              "version": "1.0.0",
              "name": "gd32tools",
              "packager": "GD32"
          }
          ]
        }
      ],
      "tools": [
        {
          "name": "xpack-arm-none-eabi-gcc",
          "version": "9.2.1-1.1",
          "systems": [
              {
                  "checksum": "SHA-256:923bf50198cb155361a95fcac8804d12acd64e963a89f352c69fe24bf54ff0ef",
                  "url": "https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v9.2.1-1.1/xpack-arm-none-eabi-gcc-9.2.1-1.1-win32-x64.zip",
                  "archiveFileName": "xpack-arm-none-eabi-gcc-9.2.1-1.1-win32-x64.zip",
                  "host": "i686-mingw32",
                  "size": "140597481"
              }
          ]
        },
        {
          "name": "gd32tools",
          "version": "1.0.0",
          "systems": [
              {
                  "checksum": "SHA-256:c2ca984550754726adac470a409d8530075c3be4e41c1775b943754984a31539",
                  "url": "https://github.com/ChazJin/arduino_tools/releases/download/1.0.0/gd32tools-1.0.0-windows.zip",
                  "archiveFileName": "gd32tools-1.0.0-windows.zip",
                  "host": "i686-mingw32",
                  "size": "18350006"
              }
          ]
        }
      ]
    }
  ]
}

As you can see, the only boards supported by Arduino are the three GD32F3 series. Even so, the tool link in the configuration file cannot be downloaded. Of course, this is also related to the unstable access to GitHub. In short, I gave up the Arduino environment. Of course, hardware adaptation of the expansion board is still possible.

-------------------------------------------------------------------------Arduino steps into the pit, still stuck in it (written to help other friends avoid the pit) ---------------------------------------------------------------------------

1. Keil environment

So I turned to the orthodox Keil MDK environment and downloaded the development board kit: "GD32L23x_Demo_Suites_V1.1.0.rar", forum path: http://dl1.eeworld.com.cn/fd.php?i=622049&s=Y2NiMVRVQzNhL25YSVRSQ1kyTXJFUlNja3lDRGZJbk1MRGNINnoxZjFnNlBTRStRYUlDN0VWNHB4R0RXc1E=, and official website path: http://www.gd32mcu.com/data/documents/kaifaban/GD32L23x_Demo_Suites_V1.1.0.rar

According to the board model, select the "GD32L233C_START_Demo_Suites" and "GD32L23x_Firmware_Library" directories to decompress. The first directory contains 6 demo cases, and the second directory contains the library files required by the case project.

Keil development requires the installation of the GD expansion pack. The forum has an offline pack download, but it says that Keil V5.27 or above is required. I have been using V5.25 and was too lazy to change but was afraid that the expansion pack would be incompatible, so I used the Pack Installer to update online. As a result, the usual snail-like speed was very fast this time and the download was completed quickly.

The end result is the same. If the online download is not working well, just use the offline package. Although I haven't tested it, I personally guess that the offline package should also be compatible with V5.25.

2. Project browsing

After installing the extension pack, you can open the project and take a look at the project configuration as usual.

The compilation and download of the project are very simple. The board comes with a Linker, which can be completed with one click. Temporarily tested the first five cases, all of which are fully functional, and will be tried again after USB.

3. Hex burning

The official website also provides a Programmer tool "", I chose serial port download (need to connect the Link port for power supply and the USB-TTL port to identify the serial port).

Of course, the serial port download needs to pull up boot0, which is jumper JP4 on the board.

This post is from GD32 MCU

Latest reply

The Programmer burning tool provided by the official website is more useful The landlord clearly marked it.   Details Published on 2022-2-7 07:19
 

6593

Posts

0

Resources
2
 

The Programmer burning tool provided by the official website is more useful

The landlord clearly marked it.

This post is from GD32 MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list