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
  • I've just found, that GPIOTE_IRQHandler() don't fire when bootloader is flashed on.I can't imagine how an IRQ handler not fired? IRQ is a hardware option, isn't it?

    Somebody knows where I can start to dig?

    @hungbui, maybe it's deal with bootloader memory mapping/IRQ vector table remapping or so on?

Reply
  • I've just found, that GPIOTE_IRQHandler() don't fire when bootloader is flashed on.I can't imagine how an IRQ handler not fired? IRQ is a hardware option, isn't it?

    Somebody knows where I can start to dig?

    @hungbui, maybe it's deal with bootloader memory mapping/IRQ vector table remapping or so on?

Children
No Data
Related