diff --git a/boards/openmote-b/board.c b/boards/openmote-b/board.c index 222f23ea47..9c9c8cfdd4 100644 --- a/boards/openmote-b/board.c +++ b/boards/openmote-b/board.c @@ -29,6 +29,9 @@ void board_init(void) gpio_init(LED1_PIN, GPIO_OUT); gpio_init(LED2_PIN, GPIO_OUT); gpio_init(LED3_PIN, GPIO_OUT); + /* The boot pin must be set to input otherwise it may lock the bootloader */ + gpio_init(BOOT_PIN, GPIO_IN); + gpio_init(USER_BUTTON_PIN, GPIO_IN); gpio_init(RF_SWITCH_2_4_GHZ_PIN, GPIO_OUT); gpio_init(RF_SWITCH_SUB_GHZ_PIN, GPIO_OUT); diff --git a/boards/openmote-b/include/board.h b/boards/openmote-b/include/board.h index ca1aafedc7..47af179ebf 100644 --- a/boards/openmote-b/include/board.h +++ b/boards/openmote-b/include/board.h @@ -96,6 +96,8 @@ #define CCA_BACKDOOR_ENABLE (1) #define CCA_BACKDOOR_PORT_A_PIN (6) /**< BSL_BOOT Pin */ #define CCA_BACKDOOR_ACTIVE_LEVEL (0) /**< Active low */ + +#define BOOT_PIN GPIO_PIN(0, CCA_BACKDOOR_PORT_A_PIN) /**< BSL_BOOT Pin */ /** @} */ /**