Serial DFU with Bootloader(debug)

Hello!

I'm developing DFU functions for my custom board.

I have some questions about DFU and Bootloader.

My development environment is below.

  • nrf52833
  • SDK 17.0.2
  • Developing Serial(Uart) DFU

1. What's the difference between Bootloader & Debug Bootloader.

I think that Debug Bootloader has more flash space for debugging Log. is it right?

So, I chose the [secure_bootloader/pca10040_uart_debug] project and changed the Flash Start address below.

Is my config right? & more config changes needed?

[ Bootloader Linker ]

  • FLASH_PH_START=0x0
  • FLASH_PH_SIZE=0x80000
  • RAM_PH_START=0x20000000
  • RAM_PH_SIZE=0x20000
  • FLASH_START=0x64000 (<-- lower address for log)
  • FLASH_SIZE=0x1a000
  • RAM_START=0x20000008
  • RAM_SIZE=0x1fff8

[ Applicatin Linker ]

  • FLASH_PH_START=0x0
  • FLASH_PH_SIZE=0x80000
  • RAM_PH_START=0x20000000
  • RAM_PH_SIZE=0x20000
  • FLASH_START=0x1000
  • FLASH_SIZE=0x63000 (<-- lower address for debug bootloader)
  • RAM_START=0x20000008
  • RAM_SIZE=0x1fff8

2. Can I use Debug Bootload for my project?

I think non-debug Bootloader is hard to use. There aren't any logs for debugging...

So, I'd like to use debug Bootloader for my projects. Will that be ok?

Or, Could I use a non-debug Bootloader more easily?

  • Hi,

    I think that Debug Bootloader has more flash space for debugging Log. is it right?

    It's correct. 

    Is my config right? & more config changes needed?

    Looks correct. You can use nRF Connect for desktop/Programmer to confirm the layout. 

    So, I'd like to use debug Bootloader for my projects. Will that be ok?

    Yes, you can use debug version during the development and get the debug log to help. There is only the setting of log difference between with/without debug. 

    Regards,
    Amanda

Related