[GD32L233C-START Review] 2. Create a minimal project that suits you
[Copy link]
In the previous article, the platform has been built, and the template project provided by GD can be compiled normally and downloaded to the development board.
At this point, you can actually start developing your project, but after all, it always feels awkward to develop your own project under the official firmware library folder.
Therefore, it is necessary to establish a minimum project that suits your own project and style to facilitate later development.
Now let’s get started:
1. Create your own folder
My project folder is as follows:
2. Put the relevant files in the specified folder
The files in the App folder are as follows:
The CMSIS folder is as follows:
The CMSIS folder can directly copy the CMSIS in the GD firmware library:
copy standard library files:
Create a new Keil project and save it in the prj folder:
The following points should be noted during the construction process:
1. You need to check the core:
2. Include header files
3. Debugger selection
4. The RAM of the download program should be increased, otherwise, the download will fail.
3. Write test code
Write the LED test code and select LED to flip once every 1,500ms
4. Compile, download and verify
Compiles without errors and warnings
Download it to the board and run the load as expected.
The minimum project has been established and the project development can proceed normally
Attached is the minimum engineering source code:
gd_finger.zip
(577.75 KB, downloads: 0)
|