Serial recovery selected without an entrance mode set

Im following Lesson 8 Exercise 2 – DFU over USB.

My project is in its late stage and now I tried to add DFU over USB but Im getting 
#error "Serial recovery selected without an entrance mode set", or devicetree error: /aliases: undefined node label 'button0'

I dont have leds on my custom board but I do have a button defined as 

  buttons {

    compatible = "gpio-keys";
    button1: button_1 {
      gpios = <&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    };
  };
Regards,
Parents
  • Hi Ivan,

    Have you enabled the proper Kconfigs in your prj.conf for the serial recovery mode?

    Also, in case you are only using one button, please change your dts definition for button1 to button0 and add the alias for it

    buttons {
    compatible = "gpio-keys";
    button0: button_0 {
    gpios = <&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    label = "Button 0";
    };
    }

    {
    aliases {
    button0 = &button0;
    };
    };

    -Priyanka

Reply
  • Hi Ivan,

    Have you enabled the proper Kconfigs in your prj.conf for the serial recovery mode?

    Also, in case you are only using one button, please change your dts definition for button1 to button0 and add the alias for it

    buttons {
    compatible = "gpio-keys";
    button0: button_0 {
    gpios = <&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    label = "Button 0";
    };
    }

    {
    aliases {
    button0 = &button0;
    };
    };

    -Priyanka

Children
Related