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.

Custom board PIN_init not successful

Other Parts Discussed in Thread: CC2640, CC2650

Hi,

I am trying to run SimpleBLEPeripheral on our CC2640 custom board with the XDS200 debugger.

The target config is CC2650 4x4.

The IOC function calls in main.c for PAEN and EN are not being executed. When I 

debug and hover over PIN_init, I see an error message. I have posted the details

of my edits to assign pins on the custom board below that matches the schematic.

Is there something else missing that the PINs are not initializing? Please help.

Thanks,

Priya

Here are the pin definitions for the custom board:

Board.h:

/* Mapping of pins to board signals using general board aliases
* <board signal alias> <pin mapping>
*/
/* Leds */
#define Board_LED_ON 1 /* LEDs on CC2650 are active high */
#define Board_LED_OFF 0
#define Board_LED1 PIN_UNASSIGNED
#define Board_LED2 PIN_UNASSIGNED
/*#define Board_LED3 IOID_5 */ /* RF1.2 */
/*#define Board_LED4 IOID_6 */ /* RF1.4 */
/* Button Board */
#define Board_KEY_SELECT IOID_7 /* RF1.14 */
#define Board_HGM_OUT IOID_0
/*#define Board_KEY_UP IOID_4 */ /* RF1.10 */
/*#define Board_KEY_DOWN IOID_3 */ /* RF1.12 */
#define Board_KEY_LEFT PIN_UNASSIGNED
#define Board_KEY_RIGHT PIN_UNASSIGNED
/* LCD Board */
#define Board_3V3_EN PIN_UNASSIGNED
#define Board_LCD_MODE PIN_UNASSIGNED
#define Board_LCD_RST PIN_UNASSIGNED
#define Board_LCD_CSN PIN_UNASSIGNED
/* UART Board */
#define Board_UART_RX IOID_9 /* RF1.7 */
#define Board_UART_TX IOID_8 /* RF1.9 */
#define Board_UART_CTS PIN_UNASSIGNED
#define Board_UART_RTS PIN_UNASSIGNED
/* SPI Board */
#define Board_SPI0_MISO IOID_3 /* RF1.20 */
#define Board_SPI0_MOSI IOID_6 /* RF1.18 */
#define Board_SPI0_CLK IOID_5 /* RF1.16 */
#define Board_SPI0_CSN IOID_4 /* RF1.14 */

Board.c:

PIN_Config BoardGpioInitTable[] = {

/* Button is active low */
Board_HGM_OUT | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL,
Board_KEY_SELECT | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS,
Board_UART_TX | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL, /* UART TX pin at inactive level */

PIN_TERMINATE /* Terminate list */
};

main.c:

int main()
{
PIN_init(BoardGpioInitTable);

IOCPortConfigureSet(IOID_2, IOC_PORT_RFC_GPO0,IOC_IOMODE_NORMAL);
IOCPortConfigureSet(IOID_1, IOC_PORT_RFC_GPO1,IOC_IOMODE_NORMAL);