2020-07-19 11:34 AM
Hello, I am quite new to G071 series, first attempt I collided with DMAMux, solved and it work like a charm.
Project is simple, just read input value pack to two half word then dma transmit by SPI.
Based on STM32G071KBU6N (UFQFN32) same bin bought in January from primary distributor.
Everything seems fine but some trouble come from GPIO.
Disabled DMA, disabled SPI, disabled all GPIO IN OUT.
Inspected register all again look fine.
Changed clock source from PLL to internal 8MHz oscillator.
Reduced AH clock rate, problem remain:
PB4, PB5, PA15 seems disconnected from IO matrix.
Same behavior repeat across all MCU I have on boards.
Measured voltage on pin they appear floating
PA15 1.39V
PB4 2.33V
PB5 0.81V
Forcing register to output don't change pin voltage, forcing pin to VSS or VDD don't change input register stuck at 0.
Forcing pullup output has no effect to external.
It seems an Hardware failure but cannot believe a similar fault passed out of test.
May be a defective lot, but I got out of option.
Last I generated a simple (KISS) project called just simple to test problem & share here: surprise :( ####@@@@@!!! :(v :thumbs_down:
No PA15 but PD0, NO PB4, NO PB5 Instead of them PD 2 PD2...
AAAAAARGH!!!! Another day and half lost across defective software ...
*** WARNING ***
if you generated code from version previous to CUBEIDE 1.3.1 redo project from scratch then import code!!!!
DAMN!!!
Epilogue: Original project was on a small Altera FPGA, actually development IDE got unreliable, G071 appeared fast enough to be a cheap reliable alternative, software forever lost quality I remember from past when I was using punched card, teletype and punched tape...
KISS version just after I got surprise on:
And welcome to HELL:
Sorry Folks, Solved at post time but still post avoid someone can get catch by.
2020-07-22 08:34 AM
Hello rromano001,
According to the screenshots attached you are using two different versions of STM32G071KxT LQFP32 MCUs: STM32G071KBUxN (PD version) and STM32G071K6Ux (GP version). Each version has its own pinouts.
So I don't think it is an IDE error.
Please refer to STM32G071x8/xB DS for further information (https://www.st.com/resource/en/datasheet/stm32g071c8.pdf).
BR,
Khouloud.