做了几块CC2640RSM板子,现在两块板子通过uart接口,能完成SAP<—>SNP(4pin)的实验,
现在改成spi接口,不能通讯修改配置如下
SAP部分:
BOARD_DISPLAY_EXCLUDE_UART
xCC2650DK_7ID
CC2650DK_4XS
CC26XX
HEAPMGR_SIZE=0
NPI_MASTER
xNPI_USE_UART
NPI_USE_SPI
POWER_SAVING
USE_DEFAULT_USER_CFG
xBOARD_DISPLAY_EXCLUDE_LCD
xDisplay_DISABLE_ALL
xdc_runtime_Assert_DISABLE_ALL
xdc_runtime_Log_DISABLE_ALL
SNP部分:
BOARD_DISPLAY_EXCLUDE_UART
xCC2650DK_7ID
CC2650DK_4XS
CC26XX
Display_DISABLE_ALL
HEAPMGR_METRICS
HEAPMGR_SIZE=0
ICALL_EVENTS
ICALL_MAX_NUM_ENTITIES=8
ICALL_MAX_NUM_TASKS=4
MAX_NUM_BLE_CONNS=1
MAX_NUM_PDU=6
MAX_PDU_SIZE=251
另外 SPI0 SAP部分和SNP部分的引脚该如何配置?我参考官方例程CC650lp的配置如下(感觉不对呢)
SAP:
Board_SPI0_MOSI | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI master out – slave in */
Board_SPI0_MISO | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI master in – slave out */
Board_SPI0_CLK | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI clock */
SNP:
Board_SPI0_MOSI | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI master out – slave in */
Board_SPI0_MISO | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI master in – slave out */
Board_SPI0_CLK | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI clock */
Viki Shi:
这部分TI有文档,请参考这边: processors.wiki.ti.com/…/SimpleAP+SNP
user4697651:
回复 Viki Shi:
你还不如不回答呢,这文档我都看了太多次了
user4697651:
回复 Viki Shi:
文档中将的是uart实验,请你仔细看看我提的问题,你回答几个呢