Skip to main content
Graduate
March 15, 2024
Solved

G431 will run (somewhat) with debugger, but not on its own.

  • March 15, 2024
  • 3 replies
  • 1668 views

I have made a prototype, and it runs as just after upload. But when i just turn on the power, it wont. It does not matter if the st-linkv3 ist connected or not. When i reset it, via the NRST pin, it also wont run.

I already used the HSE and HSI, and checked on a nucleo, that my code is working (it does).

I dont know how i further can investigate this. The level of NRST is clean and the level is good.

    This topic has been closed for replies.
    Best answer by Tobe

    It works:

    I had to set nSWBOOT0 to 0. See picture attached.

    Thanks a lot.

    3 replies

    Technical Moderator
    March 15, 2024

    Hello,

    What about Boot pin? connected to VDD or GND?

    See for example this thread: https://community.st.com/t5/stm32-mcus-products/stm32h723zgt6-will-not-reboot-after-powering-off/m-p/650457

    TobeAuthor
    Graduate
    March 15, 2024

    Neither: It is connected to RX of a CAN chip. See attached the waveforms.

    pink is Boot0 pin, blue is 3.3V of STM

     

    Technical Moderator
    March 15, 2024

    Hello,

    Neither: It is connected to RX of a CAN chip. See attached the waveforms.

     

    Sorry.. I didn't catch that point!  How did you connect Boot pin? which CAN chip? could you please share schematics?


    pink is Boot0 pin, blue is 3.3V of STM


    Pink signal is rising. It should be connected to the ground. Why BOOT pin voltage is changing?

    Graduate II
    March 15, 2024

    BOOTx pins or settings?

    Get a USART working very early in the Reset Handler so you can express signs-of-life. Could perhaps use GPIO/LEDs at as simpler level. Have Hard Fault and Error Handlers output actionable data.

    TobeAuthorAnswer
    Graduate
    March 15, 2024

    It works:

    I had to set nSWBOOT0 to 0. See picture attached.

    Thanks a lot.