hi,
we have a issue with voltage drops due to battery contact (drop voltage can be longer than a 100mSec) , we decided to add a supervisor IC that connected to RST pin.
As long as a supply voltage is at least 2.3v then RST pin is at High Z mode, once the voltage dropped under 2.3v than the supervisor pulls up a RST pin to high.
can you suggest us about some supervisor (voltage monitor)?
thanks
Device:
Hi sergey_kolen,
I suppose that this post is related, so please check the answer on this post.
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...
Thanks MT_dialog
Hi,
we still not implement (not assambled) any supervisor.
the problem :
Our FW is uploaded from Flash via SPI and we don't use OTP at all.
As part of system test we generate brief voltage drop during FW upload from Flash to RAM.
This voltage drop is not so deep to reset MCU, but deep enough to disrupt FW upload.
According to Figure. 1 from "AN-B-001 - DA1458x Booting from serial
interfaces" watchdog should be enabled at the end of boot sequence. So, we expected that after an unsuccessful attempt of FW upload watchdog timer will expired and new boot sequence will start by ROM.
But, in fact, DA14580 just stay stuck. It back to normal functionality after power reset or after set RST pin to high.
why at this scenario MCU is stacked? why Watchdog not atcivate and restart the process of uploading FW from FLASH to RAM?
Hi sergey_kolen,
Thats because the voltage drop that you are issuing occurs when the code line that starts the watchdog hasn't executed yet so there is no watchdog, since the enabling of the watchdog occurs as you said at the end sequence (first download code and then enable watchdog). So if you disrupt the downloading procedure there is no watchdog yet (Check the available pins -> Download code to SRAM -> Enable watchdog).
Thanks MT_dialog
Hi,
the voltage of DA14580 is at least 2.3V, but this voltage not enough for external FLASH ---> Boot from SPI Master (download code - our application) to SRAM and then Watchdog can be enabled.
1. who need enable watchdog? our application or internal ROM enable watchdog in the end of downloading application from FLASH to SRAM?
Hi sergey_kolen,
The primary bootloader is in ROM and can't be changed, when the system downloads data from the external device to the 580 the watchdog isn't enabled, so if you interrupt the procedure by dropping the voltage, nothing will occur in order to reset the device. If your code is successfully downloaded into the 580 then after that the primary bootloader will enable the watchdog and you will have to enable the watchdog from the SDK itself (CFG_WDOG). Actuall the CFG_WDOG will not exactly enable the watchdog (since it allready enabled) but it will prevent the SDK from freezing the watchdog (if the CFG_WDOG is not defined the SDK will freeze the watchdog). But again the watchdog is not enabled when the 580 probes and downloads fw from external devices.
Thanks MT_dialog