This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2745P10-Q1: How to use GPIO PIN as SPI CS PIN?

Part Number: CC2745P10-Q1
Other Parts Discussed in Thread: LP-EM-CC2745R10-Q1, CC2745R10-Q1

Tool/software:

Hi,

I'm currently developing a project on LP-EM-CC2745R10-Q1 by importing the basic_ble_LP_EM_CC2745R10_Q1_freertos_ticlang example.

(We are developing it using Launchpad, doing basic testing, and then downloading it to CC2745R10-Q1.)

I want to use DIO2 PIN(GPIO2) as CS pin for SPI communication. However, when I try to set CSN Pin in basic_ble.syscfg in SDK, DIO2 pin is not in the options.

As far as I know, GPIO pin can be used as SPI CS pin, but why doesn't it work here?

If it is possible to set DIO2 pin as CSN Pin as I want, please guide me how.

Thanks & Regards,

Jaeeun.

  • Hello Jaeeun, 

    DIO7, DIO16, DIO19_A6, and DIO23_X32P are the only pins that CS are configurable to for SPI four wire. For more information on this, please see the RHA Peripheral Pin Mapping Section of the Data Sheet. You can use GPIOs for the chip select, configure the SPI peripheral to 3 wire and use a GPIO to control the CS. 

    Let me know if you have any questions. 

    Thanks, 

    Isaac