This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

BSP driven buttons don't work with a bootloader

Situation

  1. I have an app, that use a BSP to detect pressing of the buttons. It works.

  2. I have a bootloader. It also works.

Problem

When I flash bootloader AND app simultaneously, BSP cannot handle button pressing. No errors during init - just bsp_button_event_handler() never fire.

Environment

  • SD 120 v.2.0
  • NDK 8.0.0
  • board PCA10001
  • compiler GCC 4.9 2014q4
  • I use a Hung Bui (@hungbui) proposed bootloader (see here), and memory values are as in answer here
  • my app is based on the ble_app_multilink_central example from NDK8

Note

Doesn't matter if I flash bootloader then app or vice versa. Also, I try to flash bootlader and then load app with bootloader DFU. The result is the same - app is flashed, started, but buttons do not work.

Thank you.

Parents
  • @Alev: I tried to reproduce the issue but was not able. I added bsp button into ble_app_multilink_central to toggle an LED when there is a button pressed. But there was no difference if the bootloader exist or not.

    The bootloader I provided doesn't use GPIOTE Port event. It configures one button as input. As suggested by RK, have you made sure you reconfigured the button correctly in your application ?

    You mentioned "When I flash bootloader AND app simultaneously", how did you do that, did you flash the application firmware via OTA DFU ?

    I'm using KEIL to compile but I don't think it could make a difference.

Reply
  • @Alev: I tried to reproduce the issue but was not able. I added bsp button into ble_app_multilink_central to toggle an LED when there is a button pressed. But there was no difference if the bootloader exist or not.

    The bootloader I provided doesn't use GPIOTE Port event. It configures one button as input. As suggested by RK, have you made sure you reconfigured the button correctly in your application ?

    You mentioned "When I flash bootloader AND app simultaneously", how did you do that, did you flash the application firmware via OTA DFU ?

    I'm using KEIL to compile but I don't think it could make a difference.

Children
No Data
Related