官方杨梅派硬件配置文件sys_config1.fex内容如下:
AD application
;---------------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
;---------------------------------------------------------------------------------------------------------
[product]
version = "1.0"
machine = "A10-EVB-V1.2"
;----------------------------------------------------------------------------------
; system configuration
;----------------------------------------------------------------------------------
[target]
boot_clock =1200
dcdc2_vol =1500
dcdc3_vol =1250
ldo2_vol = 3000
ldo3_vol = 2800
ldo4_vol = 2800
pll4_freq = 1200
pll6_freq = 1200
power_start = 1
[card_burn_para]
card_no = 0
card_line = 4
card_mode = 0
sdc_d1 = port F0<2><1><default><default>
sdc_d0 = port F1<2><1><default><default>
sdc_clk = port F2<2><1><default><default>
sdc_cmd = port F3<2><1><default><default>
sdc_d3 = port F4<2><1><default><default>
sdc_d2 = port F5<2><1><default><default>
[card_boot]
logical_start = 40960
sprite_gpio0 = port H20<1><default><default><0>
sprite_work_delay = 500
sprite_err_delay = 200
[card_boot0_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port F0<2><1><default><default>
sdc_d0 = port F1<2><1><default><default>
sdc_clk = port F2<2><1><default><default>
sdc_cmd = port:PF3<2><1><default><default>
sdc_d3 = port:PF4<2><1><default><default>
sdc_d2 = port:PF5<2><1><default><default>
[card_boot2_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_cmd = port:PC6<3><1>
sdc_clk = port:PC7<3><1>
sdc_d0 = port:PC8<3><1>
sdc_d1 = port:PC9<3><1>
sdc_d2 = port:PC10<3><1>
sdc_d3 = port:PC11<3><1>
[twi_para]
twi_port = 0
twi_scl = port:PB0<2><default><default><default>
twi_sda = port:PB1<2><default><default><default>
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PB22<2><1><default><default>
uart_debug_rx = port:PB23<2><1><default><default>
[uart_force_debug]
uart_debug_port = 0
uart_debug_tx =port:PF2<4>
uart_debug_rx =port:PF4<4>
[jtag_para]
jtag_enable =1
jtag_ms = port:PB14<3>
jtag_ck = port:PB15<3>
jtag_do = port:PB16<3>
jtag_di = port:PB17<3>
;*****************************************************************************
; sdram configuration
;
;*****************************************************************************
[dram_para]
dram_baseaddr = 0x40000000
dram_clk = 432
dram_type = 3
dram_rank_num =
dram_chip_density =
dram_io_width =
dram_bus_width =
dram_cas = 6
dram_zq = 0x7b
dram_odt_en = 0
dram_size =
dram_tpr0 = 0x30926692
dram_tpr1 = 0x1090
dram_tpr2 = 0x1a0c8
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_emr1 = 0x04
dram_emr2 = 0x0
dram_emr3 = 0x0
;*****************************************************************************
; mali configuration
;
; mali_clkdiv -- clock divisor for mali from pll4
;*****************************************************************************
[mali_para]
mali_used = 1
mali_clkdiv = 4
[g2d_para]
g2d_used = 1
g2d_size = 0x1000000
;----------------------------------------------------------------------------------
; os life cycle para configuration
;----------------------------------------------------------------------------------
;----------------------------------------------------------------------------------
; Ethernet MAC configuration
;----------------------------------------------------------------------------------
[emac_para]
emac_used =1
emac_rxd3 = port:PA00<2><default><default><default>
emac_rxd2 = port:PA01<2><default><default><default>
emac_rxd1 = port:PA02<2><default><default><default>
emac_rxd0 = port:PA03<2><default><default><default>
emac_txd3 = port:PA04<2><default><default><default>
emac_txd2 = port:PA05<2><default><default><default>
emac_txd1 = port:PA06<2><default><default><default>
emac_txd0 = port:PA07<2><default><default><default>
emac_rxclk = port:PA08<2><default><default><default>
emac_rxerr = port:PA09<2><default><default><default>
emac_rxdV = port:PA10<2><default><default><default>
emac_mdc = port:PA11<2><default><default><default>
emac_mdio = port:PA12<2><default><default><default>
emac_txen = port:PA13<2><default><default><default>
emac_txclk = port:PA14<2><default><default><default>
emac_crs = port:PA15<2><default><default><default>
emac_col = port:PA16<2><default><default><default>
emac_reset = port:PA17<1><default><default><default>
emac_power =
;----------------------------------------------------------------------------------
;i2c configuration
;----------------------------------------------------------------------------------
[twi0_para]
twi0_used = 1
twi0_scl = port:PB0<2><default><default><default>
twi0_sda = port:PB1<2><default><default><default>
[twi1_para]
twi1_used = 1
twi1_scl = port:PB18<2><default><default><default>
twi1_sda = port:PB19<2><default><default><default>
[twi2_para]
twi2_used = 1
twi2_scl = port:PB20<2><default><default><default>
twi2_sda = port:PB21<2><default><default><default>
;----------------------------------------------------------------------------------
;uart configuration
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
;----------------------------------------------------------------------------------
[uart_para0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB22<2><1><default><default>
uart_rx = port:PB23<2><1><default><default>
[uart_para1]
uart_used = 0
uart_port = 1
uart_type = 8
uart_tx = port:PA10<4><1><default><default>
uart_rx = port:PA11<4><1><default><default>
uart_rts = port:PA12<4><1><default><default>
uart_cts = port:PA13<4><1><default><default>
uart_dtr = port:PA14<4><1><default><default>
uart_dsr = port:PA15<4><1><default><default>
uart_dcd = port:PA16<4><1><default><default>
uart_ring = port:PA17<4><1><default><default>
[uart_para2]
uart_used = 1
uart_port = 2
uart_type = 4
uart_tx = port:PI18<3><1><default><default>
uart_rx = port:PI19<3><1><default><default>
uart_rts = port:PI16<3><1><default><default>
uart_cts = port:PI17<3><1><default><default>
[uart_para3]
uart_used = 0
uart_port = 3
uart_type = 4
uart_tx = port:PH00<4><1><default><default>
uart_rx = port:PH01<4><1><default><default>
uart_rts = port:PH02<4><1><default><default>
uart_cts = port:PH03<4><1><default><default>
[uart_para4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PH04<4><1><default><default>
uart_rx = port:PH05<4><1><default><default>
[uart_para5]
uart_used = 0
uart_port = 5
uart_type = 2
uart_tx = port:PH06<4><1><default><default>
uart_rx = port:PH07<4><1><default><default>
[uart_para6]
uart_used = 0
uart_port = 6
uart_type = 2
uart_tx = port:PA12<4><1><default><default>
uart_rx = port:PA13<4><1><default><default>
[uart_para7]
uart_used = 0
uart_port = 7
uart_type = 2
uart_tx = port:PA14<4><1><default><default>
uart_rx = port:PA15<4><1><default><default>
;----------------------------------------------------------------------------------
;spi configuration
;----------------------------------------------------------------------------------
[spi0_para]
spi_used = 0
spi_cs_bitmap = 1
;--- spi0 mapping0 ---
spi_cs0 = port:PI10<3><default><default><default>
;spi_cs1 = port:PI14<3><default><default><default>
spi_sclk = port:PI11<3><default><default><default>
spi_mosi = port:PI12<3><default><default><default>
spi_miso = port:PI13<3><default><default><default>
;--- spi0 mapping1 ---
;spi_mosi = port:PC00<3><default><default><default>
;spi_miso = port:PC01<3><default><default><default>
;spi_sclk = port:PC02<3><default><default><default>
;spi_cs0 = port:PC23<3><default><default><default>
[spi1_para]
spi_used = 0
spi_cs_bitmap = 1
;--- spi1 mapping0 ---
spi_cs0 = port:PA00<4><default><default><default>
spi_sclk = port:PA01<4><default><default><default>
AD application
;---------------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
;---------------------------------------------------------------------------------------------------------
[product]
version = "1.0"
machine = "A10-EVB-V1.2"
;----------------------------------------------------------------------------------
; system configuration
;----------------------------------------------------------------------------------
[target]
boot_clock =1200
dcdc2_vol =1500
dcdc3_vol =1250
ldo2_vol = 3000
ldo3_vol = 2800
ldo4_vol = 2800
pll4_freq = 1200
pll6_freq = 1200
power_start = 1
[card_burn_para]
card_no = 0
card_line = 4
card_mode = 0
sdc_d1 = port F0<2><1><default><default>
sdc_d0 = port F1<2><1><default><default>
sdc_clk = port F2<2><1><default><default>
sdc_cmd = port F3<2><1><default><default>
sdc_d3 = port F4<2><1><default><default>
sdc_d2 = port F5<2><1><default><default>
[card_boot]
logical_start = 40960
sprite_gpio0 = port H20<1><default><default><0>
sprite_work_delay = 500
sprite_err_delay = 200
[card_boot0_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port F0<2><1><default><default>
sdc_d0 = port F1<2><1><default><default>
sdc_clk = port F2<2><1><default><default>
sdc_cmd = port:PF3<2><1><default><default>
sdc_d3 = port:PF4<2><1><default><default>
sdc_d2 = port:PF5<2><1><default><default>
[card_boot2_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_cmd = port:PC6<3><1>
sdc_clk = port:PC7<3><1>
sdc_d0 = port:PC8<3><1>
sdc_d1 = port:PC9<3><1>
sdc_d2 = port:PC10<3><1>
sdc_d3 = port:PC11<3><1>
[twi_para]
twi_port = 0
twi_scl = port:PB0<2><default><default><default>
twi_sda = port:PB1<2><default><default><default>
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PB22<2><1><default><default>
uart_debug_rx = port:PB23<2><1><default><default>
[uart_force_debug]
uart_debug_port = 0
uart_debug_tx =port:PF2<4>
uart_debug_rx =port:PF4<4>
[jtag_para]
jtag_enable =1
jtag_ms = port:PB14<3>
jtag_ck = port:PB15<3>
jtag_do = port:PB16<3>
jtag_di = port:PB17<3>
;*****************************************************************************
; sdram configuration
;
;*****************************************************************************
[dram_para]
dram_baseaddr = 0x40000000
dram_clk = 432
dram_type = 3
dram_rank_num =
dram_chip_density =
dram_io_width =
dram_bus_width =
dram_cas = 6
dram_zq = 0x7b
dram_odt_en = 0
dram_size =
dram_tpr0 = 0x30926692
dram_tpr1 = 0x1090
dram_tpr2 = 0x1a0c8
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_emr1 = 0x04
dram_emr2 = 0x0
dram_emr3 = 0x0
;*****************************************************************************
; mali configuration
;
; mali_clkdiv -- clock divisor for mali from pll4
;*****************************************************************************
[mali_para]
mali_used = 1
mali_clkdiv = 4
[g2d_para]
g2d_used = 1
g2d_size = 0x1000000
;----------------------------------------------------------------------------------
; os life cycle para configuration
;----------------------------------------------------------------------------------
;----------------------------------------------------------------------------------
; Ethernet MAC configuration
;----------------------------------------------------------------------------------
[emac_para]
emac_used =1
emac_rxd3 = port:PA00<2><default><default><default>
emac_rxd2 = port:PA01<2><default><default><default>
emac_rxd1 = port:PA02<2><default><default><default>
emac_rxd0 = port:PA03<2><default><default><default>
emac_txd3 = port:PA04<2><default><default><default>
emac_txd2 = port:PA05<2><default><default><default>
emac_txd1 = port:PA06<2><default><default><default>
emac_txd0 = port:PA07<2><default><default><default>
emac_rxclk = port:PA08<2><default><default><default>
emac_rxerr = port:PA09<2><default><default><default>
emac_rxdV = port:PA10<2><default><default><default>
emac_mdc = port:PA11<2><default><default><default>
emac_mdio = port:PA12<2><default><default><default>
emac_txen = port:PA13<2><default><default><default>
emac_txclk = port:PA14<2><default><default><default>
emac_crs = port:PA15<2><default><default><default>
emac_col = port:PA16<2><default><default><default>
emac_reset = port:PA17<1><default><default><default>
emac_power =
;----------------------------------------------------------------------------------
;i2c configuration
;----------------------------------------------------------------------------------
[twi0_para]
twi0_used = 1
twi0_scl = port:PB0<2><default><default><default>
twi0_sda = port:PB1<2><default><default><default>
[twi1_para]
twi1_used = 1
twi1_scl = port:PB18<2><default><default><default>
twi1_sda = port:PB19<2><default><default><default>
[twi2_para]
twi2_used = 1
twi2_scl = port:PB20<2><default><default><default>
twi2_sda = port:PB21<2><default><default><default>
;----------------------------------------------------------------------------------
;uart configuration
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
;----------------------------------------------------------------------------------
[uart_para0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB22<2><1><default><default>
uart_rx = port:PB23<2><1><default><default>
[uart_para1]
uart_used = 0
uart_port = 1
uart_type = 8
uart_tx = port:PA10<4><1><default><default>
uart_rx = port:PA11<4><1><default><default>
uart_rts = port:PA12<4><1><default><default>
uart_cts = port:PA13<4><1><default><default>
uart_dtr = port:PA14<4><1><default><default>
uart_dsr = port:PA15<4><1><default><default>
uart_dcd = port:PA16<4><1><default><default>
uart_ring = port:PA17<4><1><default><default>
[uart_para2]
uart_used = 1
uart_port = 2
uart_type = 4
uart_tx = port:PI18<3><1><default><default>
uart_rx = port:PI19<3><1><default><default>
uart_rts = port:PI16<3><1><default><default>
uart_cts = port:PI17<3><1><default><default>
[uart_para3]
uart_used = 0
uart_port = 3
uart_type = 4
uart_tx = port:PH00<4><1><default><default>
uart_rx = port:PH01<4><1><default><default>
uart_rts = port:PH02<4><1><default><default>
uart_cts = port:PH03<4><1><default><default>
[uart_para4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PH04<4><1><default><default>
uart_rx = port:PH05<4><1><default><default>
[uart_para5]
uart_used = 0
uart_port = 5
uart_type = 2
uart_tx = port:PH06<4><1><default><default>
uart_rx = port:PH07<4><1><default><default>
[uart_para6]
uart_used = 0
uart_port = 6
uart_type = 2
uart_tx = port:PA12<4><1><default><default>
uart_rx = port:PA13<4><1><default><default>
[uart_para7]
uart_used = 0
uart_port = 7
uart_type = 2
uart_tx = port:PA14<4><1><default><default>
uart_rx = port:PA15<4><1><default><default>
;----------------------------------------------------------------------------------
;spi configuration
;----------------------------------------------------------------------------------
[spi0_para]
spi_used = 0
spi_cs_bitmap = 1
;--- spi0 mapping0 ---
spi_cs0 = port:PI10<3><default><default><default>
;spi_cs1 = port:PI14<3><default><default><default>
spi_sclk = port:PI11<3><default><default><default>
spi_mosi = port:PI12<3><default><default><default>
spi_miso = port:PI13<3><default><default><default>
;--- spi0 mapping1 ---
;spi_mosi = port:PC00<3><default><default><default>
;spi_miso = port:PC01<3><default><default><default>
;spi_sclk = port:PC02<3><default><default><default>
;spi_cs0 = port:PC23<3><default><default><default>
[spi1_para]
spi_used = 0
spi_cs_bitmap = 1
;--- spi1 mapping0 ---
spi_cs0 = port:PA00<4><default><default><default>
spi_sclk = port:PA01<4><default><default><default>