This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Custom Board - Advertising and DFU Indication

Hi all,

I have a custom board with 3 LED's and one button. I have created a custom_board.h file:

#define LEDS_NUMBER    3

#define LED_START      22
#define LED_1          22
#define LED_2          23
#define LED_3          24
#define LED_STOP       24

#define LEDS_ACTIVE_STATE 0

#define LEDS_INV_MASK  LEDS_MASK

#define LEDS_LIST { LED_1, LED_2, LED_3 }

#define BSP_LED_0      LED_1
#define BSP_LED_1      LED_2
#define BSP_LED_2      LED_3

#define BUTTONS_NUMBER 1

#define BUTTON_START   16
#define BUTTON_1       16
#define BUTTON_STOP    16

I am facing two problems:

  1. I would like to avoid the LED_1 flashes on advertising (to save some battery power)

  2. When the board enters in DFU mode LED_1 and LED_3 stay off instead of turning on like they do on the DK52

How can I fix these two issue?

Thanks

  • To everyone who may be concerned, I have answered to my own questions.

    1. Remove all the calls to bsp_indication_set

    2. The bootloader has to be (re)compiled with the information about the custom board

      a) copy custom_board.h from the project to the bootloader config file

      b) compile the bootloader with the -DBOARD_CUSTOM

    Now I am good to go.

Related