Black STM32F407VET6 + STM32F407ZET6 dev boards

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
KevinA
Posts: 11
Joined: Mon Nov 09, 2015 11:17 pm

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by KevinA » Sat Jun 09, 2018 11:58 pm

http://jaga.us/KeilConv-code.zip
http://jaga.us/code.zip
These are 100mb each and I believe the graphics are there.
The other site had phpBBS .htaccess killing everything.

KevinA
Posts: 11
Joined: Mon Nov 09, 2015 11:17 pm

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by KevinA » Sun Jun 10, 2018 7:07 pm

mcauser wrote:
Mon Jun 04, 2018 12:46 am
Features that are already working SD card, NRF24, RTC, Flash, EEPROM, Buttons, LEDs, I2C, SPI, ADC, DAC, etc.
I'm keen to get the ILI9341 TFT working (in parallel mode) with touch and SRAM.
I can blink LED(1) and LED(2) but that is it. I found a SDtest.py script but it bombs on:
sd = sdcard.SDCard(pyb.SPI(1), pyb.Pin.board.X21) # Compatible with PCB
Where do I find the 'Pin' name?
Is there a means to dump all pin names from 'board'?
I just need access to I2C, SD card

User avatar
pythoncoder
Posts: 3079
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by pythoncoder » Mon Jun 11, 2018 5:54 am

KevinA wrote:
Sun Jun 10, 2018 7:07 pm
...Is there a means to dump all pin names from 'board'?...
Try:

Code: Select all

>>> for x in sorted(dir(pyb.Pin.board)):
...     print(x)
... 
LED_BLUE
LED_GREEN
LED_RED
LED_YELLOW
MMA_AVDD
MMA_INT
SD
SD_CK
SD_CMD
SD_D0
SD_D1
SD_D2
SD_D3
SD_SW
SW
USB_DM
USB_DP
USB_ID
USB_VBUS
X1
X10
X11
X12
X17
X18
X19
X2
X20
X21
X22
X3
X4
X5
X6
X7
X8
X9
Y1
Y10
Y11
Y12
Y2
Y3
Y4
Y5
Y6
Y7
Y8
Y9
__class__
__name__
>>> 
(This is the outcome on a Pyboard.)
Peter Hinch

KevinA
Posts: 11
Joined: Mon Nov 09, 2015 11:17 pm

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by KevinA » Mon Jun 11, 2018 10:43 pm

It took me awhile to figure out how to get the function to run:
DAC1
DAC2
LED_D1
LED_D2
OSC32_IN
OSC32_OUT
PA0
PA1
PA10
PA11
PA12
PA13
PA14
PA15
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PB0
PB1
PB10
PB11
PB12
PB13
PB14
PB15
PB2
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PC0
PC1
PC10
PC11
PC12
PC13
PC14
PC15
PC2
PC3
PC4
PC5
PC6
PC7
PC8
PC9
PD0
PD1
PD10
PD11
PD12
PD13
PD14
PD15
PD2
PD3
PD4
PD5
PD6
PD7
PD8
PD9
PE0
PE1
PE10
PE11
PE12
PE13
PE14
PE15
PE2
PE3
PE4
PE5
PE6
PE7
PE8
PE9
PF0
PF1
PF10
PF11
PF12
PF13
PF14
PF15
PF2
PF3
PF4
PF5
PF6
PF7
PF8
PF9
PG0
PG1
PG10
PG11
PG12
PG13
PG14
PG15
PG2
PG3
PG4
PG5
PG6
PG7
PG8
PG9
SD_CK
SD_CMD
SD_D0
SD_D1
SD_D2
SD_D3
USB_DM
USB_DP
USB_ID
USB_VBUS
YELLOW_LED
__class__
__name__


I had a free minute Sunday and mapped all the F407ZG PINS:
I2C1_SLC PB6
I2C1_SDA PB7

I2C2_SLC PB10
I2C2_SDA PB11

THE LED
LED0 PF9
LED1 PF10

SD CARD
SDIO_D2 PC10
SDIO_D3 PC11
SDIO_CMD PD2
SDIO_SCK PC12
SDIO_D0 PC8
SDIO_D1 PC9

But looking at Class I2C:
from pyb import I2C

i2c = I2C(1, I2C.MASTER, baudrate=100000)
Nothing about 'Pins' or 'board'

Thanks for the script!


Post Reply