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

Setting vector table to bootloader

I use buttonless_dfu app from sdk 14

  1. Generate settings file by nrfutil
  2. Merge with bootloader hex file
  3. Erase chip, flash SD, flash bootloader (everything use nrfutil)
  4. Generate zip file based on app's hex file and prior generated keys

My app is work (at least in ble part) and I can use buttonless feature for dfu, but in LOGS I can see some warnings

<warning> nrf_sdh_ble: RAM start should be adjusted to 0x200020F0.
<warning> nrf_sdh_ble: RAM size should be adjusted to 0xDF10.
<info> app: Setting vector table to bootloader: 0x00078000
<info> app: Setting vector table to main app: 0x00023000
<info> app: Application started

Now I can getting away from first two about RAM. I adjust those values to my keil IRAM settings. Second warnings I can't resolve. But app works well so I go ahead.

Add NUS(uart) service I described it here

After that I get the same warnings, but error is fatal and app can't start (led 3 is blinking). Going with the same way with app_template app doesn't raise any error and app works well (at least I can see uart service in nRF connect app)

Parents
  • The log:

    <info> app: Setting vector table to bootloader: 0x00078000
    <info> app: Setting vector table to main app: 0x00023000
    

    Are not errors, just information about the operation of the bootloader.

    Could you explain this in more detail ? "but error is fatal and app can't start"

    I suggest you to test first with bootloader + softdevice, and then try to do OTA DFU your app instead of using softdevice setting. Don't test buttonless until you make sure the bootloader works properly.

Reply
  • The log:

    <info> app: Setting vector table to bootloader: 0x00078000
    <info> app: Setting vector table to main app: 0x00023000
    

    Are not errors, just information about the operation of the bootloader.

    Could you explain this in more detail ? "but error is fatal and app can't start"

    I suggest you to test first with bootloader + softdevice, and then try to do OTA DFU your app instead of using softdevice setting. Don't test buttonless until you make sure the bootloader works properly.

Children
No Data
Related