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.

CC2642R: Using a special board, but the led and button pins are coming.

Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG

As an example I choose 'simple_peripheral_oad_onchip'.
I choose Custom Board setting in syscfg. But still, 2 leds and 2 button pins are included.
I can't remove these 4 pins. Thus, I cannot use all the pins on the processor. How can I remove these 4 pins(2 button and 2 led)?
  • Hi Ahmet,

    After selecting "Use Custom Board" in SysConfig, open the .syscfg file with a text editor and remove all code pertaining to the PIN TI Driver module

    const PIN         = scripting.addModule("/ti/drivers/PIN");
    const PIN1        = PIN.addInstance();
    const PIN2        = PIN.addInstance();
    const PIN3        = PIN.addInstance();
    const PIN4        = PIN.addInstance();
    
    PIN1.$name          = "CONFIG_GPIO_BTN1";
    PIN1.pinPin.$assign = "ball.19";
    
    PIN2.$name          = "CONFIG_GPIO_BTN2";
    PIN2.pinPin.$assign = "ball.20";
    
    PIN3.$name          = "CONFIG_PIN_RLED";
    PIN3.pinPin.$assign = "ball.11";
    
    PIN4.$name          = "CONFIG_PIN_GLED";
    PIN4.pinPin.$assign = "ball.12";

    References to these pins will need to be removed from the application code as well.

    Regards,
    Ryan

  • Hi Ryan,
    Your solution worked for me. Thank you very much.

    Best regards,
    Ahmet Salih ASKER.