Extra boot time on MDBT42Q binary #3088
Replies: 5 comments
-
|
Posted at 2019-09-29 by AkosLukacs I guess it's waiting for a button press to enter DFU mode. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-09-30 by @gfwilliams
Thanks! That's most likely it - if you have the D0 (the 'button' pin) connected to VDD it'll wait in the bootloader for you to release it. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-09-30 by amandala Hmm not what I found though.. Test it again with MDBT v2.00, the result is good, similar to the -DK v2.01. But going to latest MDBT, from v2.01 - 2.04, the extra 1.1sec boot time is coming back. To avoid doubt on D0 (BTN1), I put hard short to GND on that port too..
|
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-10-01 by @gfwilliams Ok, so I just tried compiling an NRF52832DK firmware both with and without the bootloader. The bootloader does appear to add a significant delay (time between when you release the RST button and LED1 flashes) and I just checked the delay comes from a check I discovered that was being done twice when it wasn't required, and I have just pushed some changes to avoid that - but it's still pretty slow and costly, and even to get my changes would require re-updating the bootloader. However the code itself checks first to see if there's a valid CRC, and if the CRC is set to 0 it doesn't bother checking. So try running this code in Espruino: It should remove the bootloader delay pretty much completely by stopping it from performing the CRC. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-10-02 by amandala Thanks Gordon, that works well on MDBT binary V2.04.
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-09-28 by amandala
Hello, apologize if this is common knowledge, but I did a bit of search and not found the answer. When I use nRF52832-DK binary on MDBT42Q, the boot time is much shorter, as captured using PPK kit attached, the first block around 7mA is only under 200mS, but when I use the normal MDBT42Q binary (tested 2.01, 2.03, and 2.04), the boot time significantly extended to about 1.3 second. As I'm working on an application where limited energy available, the extra boot time is significant.
Any strapping I need to do to speed up boot time similar to nRF52832-DK binary?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions