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

Using secure dfu without LOG (in release)

Hello,

I'm facing some problems when trying to migrate from secure dfu debug to release mode.

I set the nrf_log to use uart instead of rtt in both debug and release versions, when using debug, all process went ok, then I removed the DEBUG define and kept the uart on (using same link file from debug), I also updated the init package with non-debug. This process went ok too, I could update the firmware checking on uart the results.

But my problem was with consumption, with uart on I got an increase of ~450uA. So I just removed the uart, but now when I try to update the firmware via dfu, I get error 8 (GATT CONN TIMEOUT). If I turn uart on again, all goes back to normal (with high curr)

Is this anyway related to nrf_log_info usage without uart?

I set all configurations on sdk_config.h

Parents
  • Well, It's working now. I adapted the same steps from the example to my application and get it to work. I've made some changes in bootloader to satisfy my application requirements (had to enable twi) and could discover that it wasn't working because of some twi miss-operations. When I removed uart I end up changing some required delay times which caused some crashes. Anyway, your assistant was very important. Thanks. Your dfu guide is awesome!

    Thank you (again) for your support!

    Att, Luccas

Reply
  • Well, It's working now. I adapted the same steps from the example to my application and get it to work. I've made some changes in bootloader to satisfy my application requirements (had to enable twi) and could discover that it wasn't working because of some twi miss-operations. When I removed uart I end up changing some required delay times which caused some crashes. Anyway, your assistant was very important. Thanks. Your dfu guide is awesome!

    Thank you (again) for your support!

    Att, Luccas

Children
Related