默认配置的spi2的引脚如下: RU_63 PC19 SPI2_CS0 RU_61 PC20 SPI2_CLK RU_67 PC22 SPI2_MISO RU_65 PC21 SPI2_MOSI RU_69 PB13 SPI2_CS1 该引脚软件做了配置,硬件核心板引出,底板没有引出 JTAG对应的引脚也可复用为SPI2 LD_46 JTAG_TCK PB15 SPI2_CLK LD_48 JTAG_TMS PB14 SPI2_CS0 LD_42 JTAG_TDI PB17 SPI2_MISO LD_44 JTAG_TDO PB16 SPI2_MOSI RU_69 PB13 SPI2_CS1 该组引脚在核心板上做了硬件处理,JTAG_SEL引脚通过R2(0欧姆)接地,硬件强制该组引脚为JTAG功 能。去掉R2电阻,引脚悬空后才能做软件设置。 修改tools/pack/chips/sun8iw11p1/configs/OKA40i_C/sys_config分辨率.fex,修改内容如下: 128行: [jtag_para] jtag_enable = 0 ;jtag_ms = port:PB14<3> ;jtag_ck = port:PB15<3> ;jtag_do = port:PB16<3> ;jtag_di = port:PB17<3> 497行: [spi2] spi2_used = 1 spi2_cs_number = 2 spi2_cs_bitmap = 3 spi2_cs0 = port:PB14<2><1> spi2_cs1 = port:PB13<2><1> spi2_sclk = port:PB15<2> spi2_mosi = port:PB16<2> spi2_miso = port:PB17<2> |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 16:47
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.