目前已将原RGZ的脚位配置替换成RHB的配置,部份脚位是成功运作的,只是仍然遇到下列2个问题:
1.第5个LED(即IOID4)不亮,想问说是什么地方的脚位冲突到吗?
2.Display_Type_UART开启不了,会卡在while(1)里面
下面是脚位配置部份:
/* Analog capable DIOs */
#define CC1310_LAUNCHXL_DIO7_ANALOG IOID_7
#define CC1310_LAUNCHXL_DIO8_ANALOG IOID_8
#define CC1310_LAUNCHXL_DIO9_ANALOG IOID_9
#define CC1310_LAUNCHXL_DIO10_ANALOG IOID_10
#define CC1310_LAUNCHXL_DIO11_ANALOG IOID_11
#define CC1310_LAUNCHXL_DIO12_ANALOG IOID_12
#define CC1310_LAUNCHXL_DIO13_ANALOG IOID_13
#define CC1310_LAUNCHXL_DIO14_ANALOG IOID_14
/* Digital IOs */
#define CC1310_LAUNCHXL_DIO0 IOID_0
#define CC1310_LAUNCHXL_DIO1 IOID_1
#define CC1310_LAUNCHXL_DIO2 IOID_2
#define CC1310_LAUNCHXL_DIO3 IOID_3
#define CC1310_LAUNCHXL_DIO4 IOID_4 //16_TDO
#define CC1310_LAUNCHXL_DIO5 IOID_5 //17_TDI
#define CC1310_LAUNCHXL_DIO6 IOID_6
//#define CC1310_LAUNCHXL_DIO22 IOID_22
/* Discrete Inputs */
#define CC1310_LAUNCHXL_PIN_BTN1 IOID_0
#define CC1310_LAUNCHXL_PIN_BTN2 IOID_1
/* GPIO */
#define CC1310_LAUNCHXL_GPIO_LED_ON 1
#define CC1310_LAUNCHXL_GPIO_LED_OFF 0
/* I2C */
#define CC1310_LAUNCHXL_I2C0_SCL0 IOID_4 //4
#define CC1310_LAUNCHXL_I2C0_SDA0 IOID_5 //5
/* LCD (430BOOST – Sharp96 Rev 1.1) */
#define CC1310_LAUNCHXL_LCD_CS IOID_7 /* SPI chip select */
#define CC1310_LAUNCHXL_LCD_EXTCOMIN PIN_UNASSIGNED /* External COM inversion */
#define CC1310_LAUNCHXL_LCD_ENABLE IOID_8 /* LCD enable */
#define CC1310_LAUNCHXL_LCD_POWER PIN_UNASSIGNED /* LCD power control */
#define CC1310_LAUNCHXL_LCD_CS_ON 1
#define CC1310_LAUNCHXL_LCD_CS_OFF 0
/* LEDs */
#define CC1310_LAUNCHXL_PIN_LED_ON 1
#define CC1310_LAUNCHXL_PIN_LED_OFF 0
#define CC1310_LAUNCHXL_PIN_RLED IOID_2
#define CC1310_LAUNCHXL_PIN_GLED IOID_3
/* PWM Outputs */
#define CC1310_LAUNCHXL_PWMPIN0 CC1310_LAUNCHXL_PIN_RLED
#define CC1310_LAUNCHXL_PWMPIN1 CC1310_LAUNCHXL_PIN_GLED
#define CC1310_LAUNCHXL_PWMPIN2 PIN_UNASSIGNED
#define CC1310_LAUNCHXL_PWMPIN3 PIN_UNASSIGNED
#define CC1310_LAUNCHXL_PWMPIN4 PIN_UNASSIGNED
#define CC1310_LAUNCHXL_PWMPIN5 PIN_UNASSIGNED
#define CC1310_LAUNCHXL_PWMPIN6 PIN_UNASSIGNED
#define CC1310_LAUNCHXL_PWMPIN7 PIN_UNASSIGNED
/* SPI */
#define CC1310_LAUNCHXL_SPI_FLASH_CS IOID_14 //14
#define CC1310_LAUNCHXL_FLASH_CS_ON 0
#define CC1310_LAUNCHXL_FLASH_CS_OFF 1
/* SPI Board */
#define CC1310_LAUNCHXL_SPI0_MISO IOID_12 /* RF1.20 */
#define CC1310_LAUNCHXL_SPI0_MOSI IOID_11 /* RF1.18 */
#define CC1310_LAUNCHXL_SPI0_CLK IOID_10 /* RF1.16 */
#define CC1310_LAUNCHXL_SPI0_CSN PIN_UNASSIGNED
#define CC1310_LAUNCHXL_SPI1_MISO PIN_UNASSIGNED
#define CC1310_LAUNCHXL_SPI1_MOSI PIN_UNASSIGNED
#define CC1310_LAUNCHXL_SPI1_CLK PIN_UNASSIGNED
#define CC1310_LAUNCHXL_SPI1_CSN PIN_UNASSIGNED
/* UART Board */
#define CC1310_LAUNCHXL_UART_RX IOID_1 /* RXD */
#define CC1310_LAUNCHXL_UART_TX IOID_0 /* TXD */
#define CC1310_LAUNCHXL_UART_CTS PIN_UNASSIGNED /* CTS */
#define CC1310_LAUNCHXL_UART_RTS PIN_UNASSIGNED /* RTS */
Susan Yang:
您可以通过 这里 得知如何在custom-boards使用SDK内的例程
您可以使用SmartRF studio来测试下您的硬件是否有问题.另外在工程内需要修改 device type来match flash size. IO definitions 也需要修改因为 RHB package的IO数比 RGZ package少. 包含IO initialization的板级文件也需要修改。
hoya:
回复 Susan Yang:
你好,可以请问下详细的测试方法吗?
您的意思是在SmartRF studio点选"configure target",选择自己板子的封装尺寸,然后再选择自己要测试的引脚,save后在"packet tx"模式按start,假若能送出100组数据即证明板子引脚没问题,是这样吗?