MCUDev 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.
pragmantic
Posts: 5
Joined: Tue Jun 20, 2017 6:31 am

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by pragmantic » Tue Jun 20, 2017 11:15 pm

Hi guys!
So I am going through the tutorial and got to this... I did import pyb...
and get this:

>>> accel = pyb.Accel()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Accel'

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by dhylands » Wed Jun 21, 2017 1:20 am

The Accel module is designed for the MMA7660 accelerometer on the pyboard. There is a driver for the ST accelerometer included on the STM32F4DISC in the stmhal/boards/STM32F4DISC directory called staccel.py: https://github.com/micropython/micropyt ... staccel.py

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by mcauser » Wed Jun 21, 2017 2:15 am

Which specific VET6 board are you running? Can you post a link or photo (eg. imgur.com)?

EasyRider
Posts: 94
Joined: Wed Dec 30, 2015 8:17 am

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by EasyRider » Wed Jun 21, 2017 6:12 am


Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by Turbinenreiter » Wed Jun 21, 2017 6:38 am

Let me know if anyone finds a real tiny board using STM32F4 in QFN48 package. I can't seem to find one (an the one I designed myself went up in smoke :D ).

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by loboris » Wed Jun 21, 2017 6:21 pm

Turbinenreiter wrote:Let me know if anyone finds a real tiny board using STM32F4 in QFN48 package. I can't seem to find one (an the one I designed myself went up in smoke :D ).
Not in QFN48, but quite small, only with limited pins exposed
http://www.ebay.com/sch/i.html?_from=R4 ... er&_sop=15
Pinout here
https://www.banggood.com/Raceflight-Bet ... 422013084W

Recently also found some chinese Pyboard's for half the price of the original pyboard
http://www.ebay.com/sch/i.html?_from=R4 ... T6&_sop=15

pragmantic
Posts: 5
Joined: Tue Jun 20, 2017 6:31 am

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by pragmantic » Thu Jun 22, 2017 1:49 am

hI,
i AM RUNNING Black STM32F407VET6 THE ONE FROM BEGINNING OF THE POST.
ooops

So if I add the mma7660 externally it won't work? do I copy Accel.py to the flash on the board and rename main.py
again noob here! been putsing around with Arduino and get the library idea... no clue here...
So do I have to recompile to include mma driver?
Again cant compile yet; get wrong board error; probably path issue; just my gut feeling!

I connected a WII nunchuck and ran the I2C scanner an it found it [82] now what? not sure it has the mma7660 in it?!? there is a million progs for Arduino to use WII but nobody gives the chip name?!?!? so I was just eXpErImEnTiNg...

I am working on my Python...
https://blog.adafruit.com/2017/06/20/in ... education/

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by mcauser » Thu Jun 22, 2017 2:00 am

To enable an external mma7660, you'd need to use a different firmware. When it's compiled, there's a bunch of features that are enabled/disabled, based on what the board has. The pyboard had a mma accelerometer, so it's firmware has it enabled.

Have a look on your pcb for a chip around 3-5mm square with mma markings. If you definitely have one, I'll give you another precompiled firmware dfu with mma enabled.

Have a look at:
https://github.com/kfricke/micropython-nunchuck

User avatar
benalb
Posts: 25
Joined: Fri May 19, 2017 1:23 pm

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by benalb » Tue Aug 15, 2017 11:17 am

I have received this http://www.ebay.es/itm/Cortex-M4-STM32- ... 2749.l2649, and just plug in my laptop (debian 4.12 kernel)

Aug 15 13:12:52 t410 kernel: [10654.959552] usb 1-1.2: new full-speed USB device number 8 using ehci-pci
Aug 15 13:12:52 t410 kernel: [10655.051488] usb 1-1.2: device descriptor read/64, error -32
Aug 15 13:12:52 t410 kernel: [10655.239443] usb 1-1.2: device descriptor read/64, error -32
Aug 15 13:12:53 t410 kernel: [10655.431453] usb 1-1.2: new full-speed USB device number 9 using ehci-pci
Aug 15 13:12:53 t410 kernel: [10655.515435] usb 1-1.2: device descriptor read/64, error -32
Aug 15 13:12:53 t410 kernel: [10655.703440] usb 1-1.2: device descriptor read/64, error -32
Aug 15 13:12:53 t410 kernel: [10655.891528] usb 1-1.2: new full-speed USB device number 10 using ehci-pci
Aug 15 13:12:54 t410 kernel: [10656.307510] usb 1-1.2: device not accepting address 10, error -32
Aug 15 13:12:54 t410 kernel: [10656.387463] usb 1-1.2: new full-speed USB device number 11 using ehci-pci
Aug 15 13:12:54 t410 kernel: [10656.803558] usb 1-1.2: device not accepting address 11, error -32
Aug 15 13:12:54 t410 kernel: [10656.803864] usb 1-1-port2: unable to enumerate USB device

Tried several cables and also in a raspberry, with the same result, Defective board?

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: Black STM32F407VET6 + STM32F407ZET6 dev boards

Post by mcauser » Tue Aug 15, 2017 9:13 pm

My boards shipped with a "blink sketch" and no USB support.

Once I installed MicroPython via a USB serial programmer (using Tx,Rx pins), I was able to use the USB port as a mass storage device.

If I erase my flash and upload an Arduino IDE sketch, my USB port will stop working again, unless of course, my sketch contains a USB implementation.

Post Reply