各位好,ti官方有给出很多2640的例程,例程中默认使用的cc2640 7*7封装的设置,如果我想调成4*4封装,要怎么设置ccs??还有一个更重要的问题:如果程序用了7*7的设置,并将程序烧到了4*4的芯片里,会有什么影响???感谢您的耐心答复!!!
user1894077:
回复 Susan Yang:
非常感谢你的答复!按照你的方法试了下,是可行的!感谢!
Zixuan Ding:
回复 Susan Yang:
请问我的CCS设置里面 路径没有$TI_RTOS_DRIVERS_BASE$\ti\boards\SRF06EB\CC2650EM_7ID,我该怎么设置?
user5845975:
回复 kqian0327:
你好,如果是CC2640r2f 2.7*2.7封装的改如何修改呢?
YiKai Chen:
回复 user5845975:
直接去改board files裡面的腳位設定就好,沒有用到的全設置為PIN_UNASSIGNED
user5845975:
回复 YiKai Chen:
hi YiKai :
非常感谢您的回复,由于我刚接触TI的芯片以及CCS开发 tool,很多问题都不太多,请您多多帮忙,打扰您了
现在我自己的开发板子上,只用到的Uart,因为2.7*2.7 的Uart的pin是DIO0 和DIO1,是否我只需要把Uart改掉,然后其他的define都注释掉就好了?
您提到的没有用的PIN全部设定为PIN_UNASSIGNED,具体的位置是否是这里?
C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\source\ti\ble5stack\boards\CC2640R2_LAUNCHXL
#define CC2650EM_7ID
/* Mapping of pins to board signals using general board aliases * <board signal alias> <pin mapping> */
/* Analog Capable DIOs */#define CC2640R2_LAUNCHXL_DIO23_ANALOG IOID_23#define CC2640R2_LAUNCHXL_DIO24_ANALOG IOID_24#define CC2640R2_LAUNCHXL_DIO25_ANALOG IOID_25#define CC2640R2_LAUNCHXL_DIO26_ANALOG IOID_26#define CC2640R2_LAUNCHXL_DIO27_ANALOG IOID_27#define CC2640R2_LAUNCHXL_DIO28_ANALOG IOID_28#define CC2640R2_LAUNCHXL_DIO29_ANALOG IOID_29#define CC2640R2_LAUNCHXL_DIO30_ANALOG IOID_30
/* Digital IOs */#define CC2640R2_LAUNCHXL_DIO0 IOID_0 //xiao test#define CC2640R2_LAUNCHXL_DIO1_RFSW IOID_1#define CC2640R2_LAUNCHXL_DIO12 IOID_12#define CC2640R2_LAUNCHXL_DIO15 IOID_15#define CC2640R2_LAUNCHXL_DIO16_TDO IOID_16#define CC2640R2_LAUNCHXL_DIO17_TDI IOID_17#define CC2640R2_LAUNCHXL_DIO21 IOID_21#define CC2640R2_LAUNCHXL_DIO22 IOID_22
/* Discrete Inputs */#define CC2640R2_LAUNCHXL_PIN_BTN1 IOID_13#define CC2640R2_LAUNCHXL_PIN_BTN2 IOID_14
/* GPIO */#define CC2640R2_LAUNCHXL_GPIO_LED_ON 1#define CC2640R2_LAUNCHXL_GPIO_LED_OFF 0
/* I2C */#define CC2640R2_LAUNCHXL_I2C0_SCL0 IOID_4#define CC2640R2_LAUNCHXL_I2C0_SDA0 IOID_5
/* LCD (430BOOST – Sharp96 Rev 1.1) */#define CC2640R2_LAUNCHXL_LCD_CS IOID_24 /* SPI chip select */#define CC2640R2_LAUNCHXL_LCD_EXTCOMIN IOID_12 /* External COM inversion */#define CC2640R2_LAUNCHXL_LCD_ENABLE IOID_22 /* LCD enable */#define CC2640R2_LAUNCHXL_LCD_POWER IOID_23 /* LCD power control */#define CC2640R2_LAUNCHXL_LCD_CS_ON 1#define CC2640R2_LAUNCHXL_LCD_CS_OFF 0
/* LEDs */#define CC2640R2_LAUNCHXL_PIN_LED_ON 1#define CC2640R2_LAUNCHXL_PIN_LED_OFF 0#define CC2640R2_LAUNCHXL_PIN_RLED IOID_6#define CC2640R2_LAUNCHXL_PIN_GLED IOID_7
/* PWM Outputs */#define CC2640R2_LAUNCHXL_PWMPIN0 CC2640R2_LAUNCHXL_PIN_RLED#define CC2640R2_LAUNCHXL_PWMPIN1 CC2640R2_LAUNCHXL_PIN_GLED#define CC2640R2_LAUNCHXL_PWMPIN2 PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_PWMPIN3 PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_PWMPIN4 PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_PWMPIN5 PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_PWMPIN6 PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_PWMPIN7 PIN_UNASSIGNED
/* SPI */#define CC2640R2_LAUNCHXL_SPI_FLASH_CS IOID_20#define CC2640R2_LAUNCHXL_FLASH_CS_ON 0#define CC2640R2_LAUNCHXL_FLASH_CS_OFF 1
/* SPI Board */#define CC2640R2_LAUNCHXL_SPI0_MISO IOID_8 /* RF1.20 */ //xiao test#define CC2640R2_LAUNCHXL_SPI0_MOSI IOID_9 /* RF1.18 */ //xiao test
//#define LNA_EN IOID_8 /* xiao test *///#define PA_EN IOID_9 /* xiao test */
#define CC2640R2_LAUNCHXL_SPI0_CLK IOID_10 /* RF1.16 */#define CC2640R2_LAUNCHXL_SPI0_CSN PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_SPI1_MISO PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_SPI1_MOSI PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_SPI1_CLK PIN_UNASSIGNED#define CC2640R2_LAUNCHXL_SPI1_CSN PIN_UNASSIGNED
/* UART Board *///#define CC2640R2_LAUNCHXL_UART_RX IOID_2 /* RXD */ //xiao test//#define CC2640R2_LAUNCHXL_UART_TX IOID_3 /* TXD */ //xiao test
#define CC2640R2_LAUNCHXL_UART_RX IOID_1 //xiao test#define CC2640R2_LAUNCHXL_UART_TX IOID_0 //xiao test
#define CC2640R2_LAUNCHXL_UART_CTS IOID_19 /* CTS */#define CC2640R2_LAUNCHXL_UART_RTS IOID_18 /* RTS */
YiKai
YiKai Chen:
回复 user5845975:
是的
user5845975:
回复 YiKai Chen:
hi YiKai :
非常感谢您的指导,我的板子终于可以跑起来了,多谢您!!!
再向您请教一个我自己板子通过Uart download的问题,还请您指导一下:
因为我自己的板子只有Uart可以用,所以我现在都是通过TI 提供的
PC 上位机程序sblAppEx.exe 通过Uart来烧录程序,但是只能烧录Bin file目前我都是同过CCS编译出来一个hex文件,然后将这个hex文件通过TI smart RF flash tool烧录到TI提供的launch pad中,
然后再借助TI smart RF flash tool把flash读出来,并保存为Bin file,这样我再将bin file 烧录到我自己的板子上这个过程很繁琐,请问一下您知不知道,如何就让CCS能编译出来一版bin file呢 ?
我用CCS编译出来的文件如下,没有bin file :
C:\Users\Administrator\workspace_v8\ble5_simple_peripheral_cc2640r2lp_app\FlashROM_StackLibrary\
ble5_simple_peripheral_cc2640r2lp_app.hex
ble5_simple_peripheral_cc2640r2lp_app.map
ble5_simple_peripheral_cc2640r2lp_app.out