GOWIN EMPU M1 Serial Port Debug
Overview
Gowin_EMPU_M1 supports serial port debug. The master communicates with the slave via a serial port. Serial debug assistant software is used to trace the debug information on the PC side.
Hardware Resource
- DK-START-GW2A18 V2.0
- GW2A-LV18PG256C8/I7
- GW2A-18C (Version C)
- USB to serial port interface board
- PC
Software Resource
- Gowin_V1.9.8.01 and above
- ARM Keil MDK (V5.26 and above) or GOWIN MCU Designer (V1.1 and above)
- Serial Debug Assistant Software
Reference Design
Gowin_EMPU_M1 supports serial debug reference design in ARM Keil MDK (V5.26 and above) and GOWIN MCU Designer (V1.1 and above) software environment. Get following reference designs by the link: http://cdn.gowinsemi.com.cn/Gowin_EMPU_M1.zip
- Gowin_EMPU_M1\ref_design\MCU_RefDesign\Keil_RefDesign\uart
- Gowin_EMPU_M1\ref_design\MCU_RefDesign\GMD_RefDesign\cm1_uart
Debug Flow
Hardware Design
- Open the IP Core Generator tool of Gowin Software and select “Soft IP Core > Micorprocessor System > Soft-Core-MCU > Gowin_EMPU_M1”.
- Configure Cortex-M1 and APB Bus Peripherals, select UART0 or UART1, and generate Gowin_EMPU_M1 hardware design with UART function.
- Instantiate Gowin_EMPU_M1 Top Module, import user designs, and connect ports between user design and Gowin_EMPU_M1 Top Module.
- Or use Gowin_EMPU_M1 reference design: Gowin_EMPU_M1\ref_design\FPGA_RefDesign\Debug_RefDesign or NoDebug_RefDesign.
Physical Constraints
Constrain the UART0 and UART1 ports in Gowin_EMPU_M1 to FPGA IO.
Software Programming Design
Please refer to 4 Reference Design Gowin_EMPU_M1\ref_design\MCU_RefDesign\Keil_RefDesign\uart or GMD_RefDesign\cm1_uart
Board Level Connection
Take development board reference design of DK-START-GW2A18 V2.0 in SDK for an instance. Connect Gowin DK-START-GW2A18 V2.0 to USB to serial port board using jumper. The UART0 and UART1 ports connection in Reference Design is as shown in Table 5-1.
UART | Port | IO |
UART0 | RXD | M14 |
TXD | K12 | |
UART1 | RXD | J13 |
TXD | H13 |
Serial Debug Assistant
Open the serial debug assistant software, as shown in Figure 5-1.
- Refer to the PC device manager to select a proper communication port.
- Configure serial port attributes, such as the reference design in SDK:
- Serial port baud rate: 115200
- Stop bit: 1
- Data bit: 8
- Parity bit: None
- Open the serial port.
- Development board power on
- Send and receive the debug information.
Revision History
Date | Version | Description |
02/19/2019 | 1.0E | Initial version published. |
07/18/2019 | 1.1E | MCU hardware design and software programming design support extended peripherals: CAN, Ethernet, SPI-Flash, RTC, DualTimer, TRNG, I2C, SPI, SD-Card. |
08/18/2019 | 1.2E |
|
09/27/2019 | 1.3E |
|
12/06/2019 | 1.4E |
|
03/06/2020 | 1.5E | Software version updated. |
06/12/2020 | 1.6E |
|
01/25/2021 | 1.7E |
|
07/16/2021 | 1.8E |
|
10/12/2021 | 1.9E | FPGA software version updated. |
Disclaimer
GOWINSEMI assumes no liability and provides no warranty (either expressed or implied) and is not responsible for any damage incurred to your hardware, software, data, or property resulting from usage of the materials or intellectual property except as outlined in the GOWINSEMI Terms and Conditions of Sale. All information in this document should be treated as preliminary. GOWINSEMI may make changes to this document at any time without prior notice. Anyone relying on this documentation should contact GOWINSEMI for the current documentation and errata.
Documents / Resources
![]() |
GOWIN EMPU M1 Serial Port Debug [pdf] User Manual EMPU M1, Serial Port Debug, EMPU M1 Serial Port Debug, Port Debug |