MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
-
- Posts: 5
- Joined: Tue Jun 20, 2017 6:31 am
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
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'
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'
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
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
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
Which specific VET6 board are you running? Can you post a link or photo (eg. imgur.com)?
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
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 ).
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
Not in QFN48, but quite small, only with limited pins exposedTurbinenreiter 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 ).
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
-
- Posts: 5
- Joined: Tue Jun 20, 2017 6:31 am
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
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/
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/
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
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
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
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
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?
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?
Re: Black STM32F407VET6 + STM32F407ZET6 dev boards
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.
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.