2021-09-17 01:26 PM
Hi everyone
I recently got a new STM32G031.
I quickly coded a TIMER app with DMA to check if I can program.
Everything went find and STM Cube could detect and program te device without any issues.
However after it programmed it green flashing light went off which I suspect was the firmware it came with which is correct.
But then even though my PC detects the device as a plugged in USB device... Cube refuses to see it and I can not seem to reprogram it.
Did I mess the clock up or how do I get it to be recognised by cube again?
Thanks
2021-09-17 01:44 PM
Try "connect under reset" or BOOT0 HIGH options to stop your code running
Check you're not reconfiguring debug pins, disabling them or putting the device to sleep, these would tend to be deleterious to connectivity.
2021-09-18 04:55 AM
@Community member
I have managed to connect to the board using the NRST to GND jumper that came with the board.
However when I use it, It connects but then states that the board is held under reset conditions.
I can not seem to find my specific boards page on the STM website and I dont know which pins I am suppose to NOT program.
I am not quite sure how to identify these pins on my specific board anyway.
2021-09-18 06:23 AM
Not suggesting connecting the NRST to GND, this should be done by the JTAG/SWD pod, but there it's only holding it long enough to get control of the core and the software that runs subsequently.
https://www.st.com/en/evaluation-tools/nucleo-g031k8.html#cad-resources
PA13/PA14 are the primary debug pins on all STM32 MCU, PB3 can be SWO on the non-CM0(+)
2021-09-18 01:00 PM
I had to remove all the data from the chip in Power Down mode using the Utility, :*(
2021-11-05 10:53 PM
Have managed to hook up with the board the usage of the NRST to GND jumper that got here with the board. However after I use it, It connects but then states that the board is held below reset situations.