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.

Just toggle a led on the cc2640.

Hi, can you please help me out on this simple task that is extremely tricky on this ARM chip.

1. Global veriables:

const PIN_Config pinLedConstConfig[] = {
    PIN_ID(4) | PIN_GPIO_OUTPUT_EN | PIN_PUSHPULL | PIN_GPIO_LOW | PIN_BM_OUTPUT_MODE,
    PIN_TERMINATE
};
PIN_Config pinLedConfig = PIN_ID(4) | PIN_GPIO_OUTPUT_EN | PIN_PUSHPULL | PIN_GPIO_LOW | PIN_BM_OUTPUT_MODE;
PIN_State pinLedState;
PIN_Handle pinLedHnadle;

2. Hardware init:

if (PIN_init(pinLedConstConfig) != PIN_SUCCESS)
    exceptionHandler(55);

pinLedHnadle = PIN_open(&pinLedState, pinLedConstConfig);

3. on and off

if (PIN_setOutputValue(pinLedHnadle, PIN_ID(4), 0) != PIN_SUCCESS)
    exceptionHandler(55);
if (PIN_setOutputValue(pinLedHnadle, PIN_ID(4), 1) != PIN_SUCCESS)
    exceptionHandler(55);

No exception raised, port is always on "1" and did not changed, tested with breakpoints on IAR.

Any suggestions?