I use the NUCLEO-F767ZI with an custom made hat
I'm triyng to set up an application (fairly simple but with large number of pin used)
I encounter the folowing problem - not able to initialize 3 pin: G15 ,G12 and G10
All other pin used in application seems to be properly initialised
Code: Select all
Traceback (most recent call last):
File "main.py", line 122, in <module>
AttributeError: type object 'cpu' has no attribute 'G15'
MicroPython v1.16-236-gb51e7e9d0 on 2021-08-21; NUCLEO-F767ZI with STM32F767
Code: Select all
.....
port_B.append(pyb.Pin(pyb.Pin.cpu.E6,Pin.OUT))
port_B.append(pyb.Pin(pyb.Pin.cpu.G9,Pin.OUT))
....
port_B.append(pyb.Pin(pyb.Pin.cpu.G15,Pin.OUT))
port_B.append(pyb.Pin(pyb.Pin.cpu.G12,Pin.OUT))
port_B.append(pyb.Pin(pyb.Pin.cpu.G10,Pin.OUT))
.....
Verified with Stm32CubeIde if the pins are disponible to be used and no problem.
I don't figure where is my fault...
Thank you!
Best regards,
Tiberiu
-------------
[Edit]
Hello everyone,
I made one try with the same code using NUCLEO -F429ZI instead and in this case those pins (PG15, PG12, and PG10) seems to be properly defined on this board (they are listed also in pins.csv for NUCLEO-F429ZI)
Code: Select all
.............
port_B.append(pyb.Pin(pyb.Pin.cpu.G15,Pin.OUT))
port_B.append(pyb.Pin(pyb.Pin.cpu.G12,Pin.OUT))
port_B.append(pyb.Pin(pyb.Pin.cpu.G10,Pin.OUT))
>>> port_B[19]
port_B[19]
Pin(Pin.cpu.G10, mode=Pin.OUT)
>>> port_B[18]
port_B[18]
Pin(Pin.cpu.G12, mode=Pin.OUT)
>>> port_B[17]
port_B[17]
Pin(Pin.cpu.G15, mode=Pin.OUT)
>>>
This is the result of the same code running in Nucleo -F767ZI
Code: Select all
Traceback (most recent call last):
File "main.py", line 122, in <module>
AttributeError: type object 'cpu' has no attribute 'G15'
MicroPython v1.16-236-gb51e7e9d0 on 2021-08-21; NUCLEO-F767ZI with STM32F767
Thank You
Best regards,
Tiberiu
edit 24/08/21
Hello everyone,
Same NUCLEO-F767ZI,
after various trials to workaround (at hardware side switching the pins way around) I found another 3 pins not assignable PF11, PD10, PG8.
So far I'm not able to use PD10, PF11, PG8, PG10, PG12, PG15, .
Code: Select all
AttributeError: type object 'cpu' has no attribute 'G15'
...
AttributeError: type object 'cpu' has no attribute 'D10'
...
Thank you
Best regards,
Tiberiu