This post was last edited by littleshrimp on 2018-8-2 18:44 GD32F350 is a Cortex-M4 microcontroller launched by GigaDevice Semiconductor. It is said to be cheap at 30 cents per piece. The GD32-Colibri-F350Rx development board looks good, with a CMSIS-DAP emulator on board. What is special is the USB port on the emulator. The serial port conversion is not realized by GD32F103, but a USB-HUB and a CH340 are added. The USB-serial port conversion is through CH340. I don't know what the advantage of this design is. Maybe the debugging speed will be faster. 367331 Schematic diagram
COLIBRI_GD32F350R8T6.pdf
(960.46 KB, downloads: 44)
Data sheet User manual The examples corresponding to the development board are modified from other boards SupportIARandMDK You need to install the corresponding plug-in to useIARandMDK The path of the project file is GD32F3x0_Firmware_Library_V1.0.0\Template. The code looks comfortable and easy to understand. It was transplanted to GD32-Colibri-F350Rx. It took a lot of time because of some problems. The first thing was to change the LED pins to the corresponding ones of GD32-Colibri-F350Rx. 367332 ttach]This is easier Then I found that the LED flashing frequency was abnormal and the delay was much longer than normal Later I found that the clock was configured as an external crystal oscillator. This problem occurred because this board did not have a crystal oscillator Findsystem_gd32f3x0.cfile and comment out__SYSTEM_CLOCK_108M_PLL_HXTAL,Use ont]__SYSTEM_CLOCK_108M_PLL_IRC8M_DIV2, you can change the clock source to the internal oscillator The clock has been changedThe flashing frequency of the LED is normal. Another problem is that the computer cannot receive the data sent byUART For this reason, I have read all the codes related toUART and found no problems The corresponding pins ofUART are[ /font]PA2andPA3, the data sent by the code is looped and cannot be seen with an oscilloscope. UsingGPIO mode to controlPA2andPA3, the level changes can be seen, proving that there is no problem with the physical connection. UsingPC to send data to the board through the serial port, the oscilloscope can see it, indicating thatCH340 has no problem. The pin configuration is correctAlternate The choice of function is also correct. All the problems that can be analyzed have been analyzed. After searching for a long time, I finally found a note in the data sheet and learned that the development board corresponds to the microcontroller model GD32F350R8T6. PA2 and PA3 only support USART1 367334 367335. The original UART in the example used USART0. After changing it to USART1, the communication is normal. Finally, when downloading, you need to change the emulator to CMSIS-DAP. The debugging speed is still very fast.
|