
3 Use Instructions for RDS
3.5 On-chip Debug
IPUG546-1.1E
12(17)
Default in RTL design, as shown in Figure 3-8. Then modify config.h.
Open src/bsp/config/config.h, and find the macro definition
"BUILD_MODE" and modify it to "BUILD_BURN".
Figure 3-8 ae250.sag bootloader Parameters Setting
Note
!
The parameter should be consistent with the value of System Reset Vector Default of
the RTL parameter.
Modify the compilation settings; right-click the name of the embedded project, select
Build Settings; select "Objcopy > General" tab, and uncheck "Disable". (Do not
auto-generate output file.)
Recompile the embedded program to generate binary files of the
embedded project, and download the files to SPI Flash 0x400000 address
using Gowin Programmer external Flash C Bin mode.
Synthesize and place & route the modified RTL design again, and
download it to SPI Flash 0x000000 address using Gowin Programmer
external Flash mode.
3.5
On-chip Debug
After compilation, the compilation results of the embedded project can
be downloaded to the development board for on-chip debug.
Modify config.h; open src/bsp/config/config.h, and find the macro
definition BUILD_MODE; modify it to BUILD_LOAD, and recompile the
embedded program.
Right-click on the project name in the Project Explorer, and select
"Debug as > MCU Program "from the drop-down menu. For the first time, ,
a dialog box will pop up for setting "Debug Configuration", as shown in
Figure 3-9.
Содержание RISCV
Страница 1: ...Gowin FPGA Development Board RISCV Programming Quick Start Guide IPUG546 1 1E 11 11 2022 ...
Страница 24: ......