Skip to main content
Visitor II
November 15, 2020
Question

STM32F103C8Txxx custom board, glitches after few seconds

  • November 15, 2020
  • 3 replies
  • 3155 views

Hello everybody,

I made for school a custom stm32f103C8Txxx board.

Programming with a ST-Link V2 work without a problem.

To test the pcb, there are 2 led's (pin pc13 en pa10), they both illuminate every 500ms (easy code to test functionality).

The code wil run, for a few seconds and then glitches and does not respond... even after reset, it will glitch instantly.

If I dissconnect power for a minute, it will work again, but only for a few seconds and then glitches again.

Any ideas what it could be?

I added the schematic for everyone to see (don't mind the usb-c stuff, those components are not place on the pcb)

Edit 1:

Boot 0 and Boot 1 are determined with jumpers. Some parts of the schematic are based on the blue pill.

    This topic has been closed for replies.

    3 replies

    Super User
    November 15, 2020

    Is BOOT0 pulled down? The schematic doesn't reflect the current state of the jumpers.

    MDebo.1Author
    Visitor II
    November 15, 2020

    Yes, BOOT 0 is pulled down, it's with jummpers.

    Super User
    November 15, 2020

    You may need to clarify what "glitches" means. Attach a debugger, figure out what is happening within the code when the glitch occurs. If it's truly random, seems like a power supply issue. I don't see any other issues in the schematic. Didn't check that the crystal load capacitors are appropriate. You're missing a bulk ceramic capacitor, although I'd be surprised if that was the cause.

    Super User
    November 15, 2020

    What else does the code do, except blinking the LEDs?

    Does it run from HSI or HSE?

    JW

    MDebo.1Author
    Visitor II
    November 15, 2020

    Normally HSE.

    What I did is make a arduino project for blinking led en converted it in bin.

    It just runs blinking the leds.

    Graduate II
    November 15, 2020

    PC13 is not designed for large currents, it is in the low power domain.

    As there is no activity on NRST, will assume the core isn't resetting it self, and you need to look more critically at your code, and if it ends up in the Error_Handler() or HardFault_Handler()

    MDebo.1Author
    Visitor II
    November 15, 2020

    my code is made in arduino, converted in bin and then uploaded by STM32 ST-LINK Utility.0693W000005BQr8QAG.png