cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-G031K8 Program Will Not Start With 12v on VIN Pin LD1 Flashing Slowly

LAURENCE
Associate II

Hi there,

I have a Nucleo-G031K8 evaluation board and am unable to get the program to start when connected to an external power supply. I have a bench top power supply connected to the VIN pin with 12v+ The LD2 led is light indicating power is working but the program fails to initialize and LD1 slowly flashes. The program works as expected when connected to my pc via USB but the program won’t start when using the external supply. The board is in it’s default configuration with respect to jumpers and solder bridges and I opened a brand new unit and attempted to power it via the VIN pin before connecting it to my PCB to verify that no circuit issues or damage is causing this. Please advise.

Thanks

14 REPLIES 14
TDK
Guru

LD2 indicates the device is getting power. Technically, that's the 5V rails and not VDD, but unlikely there are power issues. Likely it's running code somewhere.

LD1 flashing means the USB has not connected to the PC. Do you have a USB cable present?

You can attach a debugger without resetting to see what it's doing. Would be informative to explain what "program won't start" and "works as expected" mean precisely.

Note that 12V is max allowed and that current usage is limited. I'm assuming "12v+" means "+12V" and not "more than 12V".

If you feel a post has answered your question, please click "Accept as Solution".

Hi There,

Thanks for taking the time to review my issue. Hopefully I can provide some more clarity:

1) my power supply is 12v but after the voltage drop through the regulator I get 10v on the VIN pin on the board.

2) I’m using the HAL library via stm32cube ide. Most of the setup code is auto generated. I am using external button interrupts and denouncing with the built in timers. The interrupt callbacks are rising edge and a volatile boolean flag is being set and reset inside the callback.

3) “works as expected�? means the interrupts are working correctly. I am polling for the flag status in my while loop and setting resetting the output GPIO based on the flag also using the HAL_GPIO functions. This is working without fail while connected to the pc via USB.

4) the program doesn’t seem to run while using external power. If I apply 5v power to the 5V pin the program still won’t initialize (I assume it isn’t starting because the button interrupts won’t trigger my outputs as expected) while powering the MCU via the 5V pin I can get it to start working by supplying 3.3v to the RST pin however this is an automotive application so Ideally I would like to power it with the 12v system hence the choice to use the board with “versatile�? power options. I also have already built and wired my pcb with the voltage regulators and i/o protection circuits.

I hope that isn’t just a lot of hot air and helps you understand what I am trying to achieve.

Thanks Again!

Double check what solder bridges are made/open as necessary so the board isn't held in reset.

Is the L1 LED blinking just a secondary effect of what the ST-LINK F103 IC is doing, and not related to what the G031 should be doing?

Have your G031 code do something simple you can validate. Have it self clock, via HSI or MSI, or whatever it starts on.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

> my power supply is 12v but after the voltage drop through the regulator I get 10v on the VIN pin on the board.

So you're suppling an external voltage regular with 12V, then using the 10V output to supply the VIN pin? Should be fine, if convoluted. How much current is it using and is the 3.3V line stable?

> I can get it to start working by supplying 3.3v to the RST pin

That's weird. So after supplying VIN power, NRST is low? Forcing this pin high isn't a good idea as it prevents internal resets. If it's low, figure out why and solve that.

Did you attach a debugger to see what it's doing? Although is NRST is low, that's why it's not running.

If you feel a post has answered your question, please click "Accept as Solution".

Are you sure the NRST solder bridge isn't made.

Take a clear photo of front/rear of board as you have it now.

High Resolution, In Focus

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Hi there,

the solder bridges are in the default configuration as per the documentation on the NucleoG031K8 however I can’t see anything In the docs that suggest this default state would cause this problem. The docs also state that LD1 flashing like that is indicative of ST-LINK IC attempting its first USB enumeration with the pc, which is obviously not connected while using standalone power. I’m not sure how to bypass this.

0693W00000DlwOCQAZ.jpg0693W00000DlwNiQAJ.jpgimages of board.

My apologies I’m relatively new to the STM32 ecosystem here. Do you mean connect pc via USB to use the onboard ST-LINK debugger or connect my dedicated ST-Link dongle? Im not sure how to do that with the SWD pins not exposed on this board. Forgive me if I’m confused here. Seems like the STM32 mcu has a pretty steep learning curve.

What firmware is on the ST-LINK?

Can you update to current?

https://www.st.com/en/development-tools/stsw-link007.html

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..