2024-03-29 01:02 PM
2024-03-29 01:04 PM
our VDD rise time is much greater than the minimum speified in the datasheet 20 us / V and I do not see any other critical sequencing. Yet to test adding a delay in code execution.
2024-03-29 01:24 PM - edited 2024-03-29 01:28 PM
Make sure BOOT0 is pulled low, so isn't floating and high-ish as the MCU gains viability at around 1.2V
Check VCAP levels and caps. Adequate bulk capacitance, 2u2 individually or 4u7 collectively. Should be around 1.25V
Have HardFault_Handler() and Error_Handler() output actionable data.
Watch for slow start time of external oscillators and/or the PLL
2024-03-30 01:22 AM
Just adding to @Tesla DeLorean's list: make sure *all* VDD/VSS pins (including analog and VBAT) are connected as appropriate.
> If I enable the hardware watchdog
Tell us all the details of this.
JW
2024-04-01 05:11 PM
Hello All,
Boot0 is low, VCAP is stable, VDD and VSS are solid, our bypass values are 1uF per pin 0603, also we have a bulk 22 uF ceramic, we are using internal RC for clock and external 32 kHz crystal for RTC
RTC is implicated as cause
if I force the RTC to fail (by removing a series element or loading with parasitics), it presents the same issue as that described above, we get a single debug message from the bootloader then nothing, if I have the HW WDG enabled it endlessly performs these two steps 1) prints the bootloader debug message, 2) WDG resets device, and but never starts up. If I do not for the RTC to fail it will eventually startup.
Questions:
-could anything else cause a similar issue, there was a very small change in our copper (perhaps our PCB fabircator have a different process), so this is a surprising finding.
-is there a best firmware practices working with the 32 kHz crystal, initialization delay etc?
-I am exploring how to better estimate or measure our crystal parasitics
2024-04-01 11:48 PM
Is VDDA connected directly to VDD?
How is VBAT connected?
What is the timeout waiting for LSE to start up, and what happens if that timeout, well, times out? Note, that it may take a surprisingly long time (tens of seconds) for a 32.768kHz crystal oscillator to start up.
JW
2024-04-02 10:15 AM
2024-04-02 11:10 AM
What is the timeout waiting for LSE to start up, and what happens if that timeout, well, times out? Note, that it may take a surprisingly long time (tens of seconds) for a 32.768kHz crystal oscillator to start up.
JW
2024-04-07 04:18 PM
We created a test FW to measure the RTC startup time and the median was 1.5sec and the repeatability was mostly +/- 20% .
However, two assemblies were over five seconds, I have tracked the issue to the MCU!
20 pF ~10 seconds
18 pF ~7 seconds
15 pF ~2.5 seconds
13 pF ~1.7 seconds
8 pF ~0.8 seconds
Do you have any suggestions:
Best.
2024-04-07 06:35 PM
Ok, but what part# for your 32.768 KHz, is it a 6, 9 or 12pF class?
The F1, F2, F4 all really want 6-7pF oscillators, and the caps you're using all strike me as being rather high
MC306-G-06Q-32.768 (manufacturer JFVNY), pair of 6.8pF
Regular C0G/NP0 caps should be fine. You want very short traces and board capacitance, so tight to the IC