由于英特尔® Quartus® Prime 专业/标准软件有问题,U-boot 设置会禁用OSC_CLK_1_HPS、nPOR_RST和 nRST_HPS 输入端口。
1) 移到设计hps_isw_handoff文件夹。
2) 打开 hps.xml
3) 查找以下部分。
<csr>
<!--未使用引脚 1 -->
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.rtrim' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.input_buf_en' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.wk_pu_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.pu_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.pd_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.pu_drv_strg' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.pd_drv_strg' 值='0' />
<!--未使用引脚 2 -->
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.rtrim' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.input_buf_en' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.wk_pu_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.pu_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.pd_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.pu_drv_strg' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.pd_drv_strg' 值='0' />
<!--未使用引脚 3 -->
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.rtrim' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.input_buf_en' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.wk_pu_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.pu_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.pd_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.pu_drv_strg' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.pd_drv_strg' 值='0' />
4) 使用以下OSC_CLK_1_HPS、nPOR_HPS和nRST_HPS设置替换上述 3 种未使用设置,并保存 hps.xml。
<csr>
<!-- OSC_CLK_1_HPS -->
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.rtrim' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.input_buf_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.wk_pu_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.pu_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.pd_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.pu_drv_strg' 值='8' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_1.pd_drv_strg' 值='10' />
<!-- nPOR_HPS -->
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.rtrim' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.input_buf_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.wk_pu_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.pu_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.pd_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.pu_drv_strg' 值='8' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_2.pd_drv_strg' 值='10' />
<!-- nRST_HPS -->
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.rtrim' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.input_buf_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.wk_pu_en' 值='1' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.pu_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.pd_slw_rt' 值='0' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.pu_drv_strg' 值='8' />
<config name='i_io48_pin_mux_dedicated_io_grp.configuration_dedicated_io_3.pd_drv_strg' 值='10' />
5) 创建一个 uboot 项目,根据新的交付文件制作 bin 文件