Skip to main content
Visitor II
July 20, 2019
Question

[Very Urgent Help] The STM32F042K4T6 integrated sometimes does not work. I'm restarting the system from the NRST pin. If I'm throwing resat 10 times, the system works in 8 and the microcontroller does not start in 2 of them.

  • July 20, 2019
  • 4 replies
  • 2042 views

Hello Everyone

I design oven timer (transformerless) with STM32F042K4T6. Although I tested everything separately there is a problem in the pcb. When the system first comes on, the system works but sometimes it doesn't. I tested it 10 times and the MCU didn't work twice...

Has anyone ever experienced anything like this before? Your advice is very important to me.

Schematic;

0690X000009YwaaQAC.png

Clock Config;

0690X000009YwcCQAS.png

Filter Capacitor, Crystal (8Mhz) and NRTS resistance locations;

0690X000009YwcgQAC.png

    This topic has been closed for replies.

    4 replies

    Graduate II
    July 20, 2019

    Put a pull-down resistor on PB8 (31)

    Visitor II
    July 20, 2019

    Why PB8? Is there a special reason? Because I have to use that pin.

    Graduate II
    July 20, 2019

    Would a pull down resistor of 4K7 preclude your usage elsewhere?

    If you don't understand the relevance of the pin you might want to urgently review the documentation.

    Technical Moderator
    July 20, 2019

    Dear Gentleman,

    I would recommend to remove R24 and what means the system is not starting? If for exemple you put a simple LED toggelling and while (1) to know at which step it is hanging.. it may be a software configuration not in spec. How many units are affected?

    Cheers,

    STOne-32

    Graduate II
    July 20, 2019

    I suspect "not starting" infers it is in the ROM as opposed to user code, or stuck in a while(1) loop in Error_Handler() if the crystal fails to start promptly.

    Graduate II
    July 20, 2019

    Agreed on BOOT0 and R24.

    Also I don't see the capacitors recommended in AN4080. And most likely an oven doesn't need quartz crystal at all - HSI is good enough.

    Visitor II
    July 22, 2019

    I didn't want to take risks. I'll test HSI, thank you. :)