2022-03-14 08:42 AM
Hi,
I can see weird behaviour on my STM32L083RBT6. Do not know where to start - I will try:
No voltage spikes captured on power pins during connecting and unconnecting battery.
I will be very grateful for any help.
Solved! Go to Solution.
2022-03-21 02:28 AM
So now It is clear. I had unchecked WDG_SW - it means the IWDG was activated by harware and this is why the reset occured.
What I do not understand is why this bit was unchecked.
2022-03-14 09:28 AM
Clear the RCC->CSR bits after you read them.
If it's indicating a watchdog reset, that's likely the source of the reset.
Loading into the system bootloader or connecting under reset in STM32CubeProgrammer and erasing the flash will allow you to recover the chip.
2022-03-14 01:12 PM
Hi and thanks,
when I clear it so PINRSTF and IWDGRSTF are set after reset, But I have disabled RTC, LSI, and IWDG -then how could IWDG cause a reset?
2022-03-14 01:19 PM
2022-03-15 03:05 AM
When check IWDG - so by stm32CubeProgrammer is disabled. I can say that I do not modify any options byte in my code and I flash it only from STM32Ide by Jlink programmer. I do not really understand this behaviour :(
2022-03-15 07:11 AM
I also set BOR level to Level1 from code. But now I commented this settings.
BTW by reseting mcu the BOR level is resets to default state or do I need to do full erase of chip?
2022-03-15 07:53 AM
Current status:
0) I erased the periodically reseting mcu from cubeProgrammer.
1) I flashed it by a simple app - just init clocks and the empty while loop.
2) The mcu still keeps resetting with same period (about 500 ms)
3) Added clearing RESETS flag in RCC->CSR reg.
4) The resets flag after reset are IWDG RST and PIN RST
5) The mcu still keeps resetting with same period (about 500 ms)
Any idea what should I try next?
Thank you.
2022-03-15 08:53 AM
> Any idea what should I try next?
Not really. Sure looks like an IWDG reset to me. Perhaps it is being enabled somewhere that you're missing. Search your full project for IWDG to find instances where it may be used.
There are not glaring issues in the hardware, especially in IWDG. The answer is almost certainly in software.
2022-03-15 09:19 AM
What IDE you use? Create new workspace and project with MX wizard. Build it maybe on other PC or IDE.
2022-03-17 01:44 PM
Current state:
It looks like the IWDG is activated despite the factI didn't allow it?!?