Git Product home page Git Product logo

black_f407ve's Introduction

MCUDev Black STM32F407VET6

MicroPython board definition files for the MCUDev black STM32F407VET6 dev board.

Brand: MCUDev

Markings: STM32F4XX STM32_F4VE V2.0 1509

board

You can buy one for around $16 AUD (Oct 2019) on AliExpress.

Build the firmware

Clone the board definitions to your MicroPython ports/stm32/boards folder.

cd micropython/ports/stm32/boards
git clone https://github.com/mcauser/BLACK_F407VE.git

cd ..
make BOARD=BLACK_F407VE

Flashing via DFU

This board can be flashed using DFU. To put the board in DFU mode, disconnect USB, set BOOT0 to ON by connecting pin BT0 to 3V3 and reconnect USB.

Now you can flash the board using USB with the command:

make BOARD=BLACK_F407VE deploy

Once the upload is complete, disconnect USB, set BOOT0 to OFF by connecting pin BT0 to GND and reconnect USB.

Alternatively, you can use the MicroPython command pyb.bootloader() to get into DFU mode without needing to use the switch.

Currently, you need to unplug and replug the board in order to switch from DFU mode back to regular mode.

Accessing the board

Once built and deployed, you can access the MicroPython REPL (the Python prompt) via USB serial.

screen /dev/tty.usbmodem1422 115200
# or
screen /dev/ttyACM0 115200

Specifications

  • STM32F407VET6 ARM Cortex M4
  • 168MHz, 210 DMIPS / 1.25 DMIPS / MHz
  • 1.8V - 3.6V operating voltage
  • 8MHz system crystal
  • 32.768KHz RTC crystal
  • 2.54mm pitch pins
  • JTAG/SWD header
  • 512 KByte Flash, 192 + 4 KByte SRAM
  • 3x SPI, 3x USART, 2x UART, 2x I2S, 3x I2C
  • 1x FSMC, 1x SDIO, 2x CAN
  • 1x USB 2.0 FS / HS controller (with dedicated DMA)
  • 1x USB HS ULPI (for external USB HS PHY)
  • Micro SD
  • Winbond W25Q16 16Mbit SPI Flash
  • RTC battery CR1220
  • 1x 10/100 Ethernet MAC
  • 1x 8 to 12-bit Parallel Camera interface
  • 3x ADC (12-bit / 16-channel)
  • 2x DAC (12-bit)
  • 12x general timers, 2x advanced timers
  • AMS1117-3.3V: 3.3V LDO voltage regulator, max current 800mA
  • Micro USB for power and comms
  • Red power LED D1
  • Red user LED D2 (PA6) active low
  • Red user LED D3 (PA7) active low
  • 2x jumpers for bootloader selection
  • Reset button, Wakeup button, 2x user buttons K0 (PE4) and K1 (PE3)
  • 2x24 side pins + 2x16 bottom pins + 1x4 ISP pins
  • 2x16 FMSC LCD Interface
  • NRF24L01 socket
  • M3 mounting holes
  • Dimensions: 85.1mm x 72.45mm

Exposed Port Pins

  • PA0-PA15
  • PB0-PB15
  • PC0-PC13 (PC14 OSC32_IN and PC15 OSC32_OUT not broken out)
  • PD0-PD15
  • PE0-PE15

Peripherals

TFT (J1)

  • 1 GND
  • 2 RST
  • 3 PD10 FSMC_D15
  • 4 PD9 FSMC_D14
  • 5 PD8 FSMC_D13
  • 6 PE15 FSMC_D12
  • 7 PE14 FSMC_D11
  • 8 PE13 FSMC_D10
  • 9 PE12 FSMC_D9
  • 10 PE11 FSMC_D8
  • 11 PE10 FSMC_D7
  • 12 PE9 FSMC_D6
  • 13 PE8 FSMC_D5
  • 14 PE7 FSMC_D4
  • 15 PD1 FSMC_D3
  • 16 PD0 FSMC_D2
  • 17 PD15 FSMC_D1
  • 18 PD14 FSMC_D0
  • 19 PD4 FSMC_NOE
  • 20 PD5 FSMC_NWE
  • 21 PD13 FSMC_A18
  • 22 PD7 FSMC_NE1
  • 23 PB13 T_SCK
  • 24 PB12 T_CS
  • 25 PB15 T_MOSI
  • 26 PB14 T_MISO
  • 27 PC5 T_PEN
  • 28 PB1 LCD_BL
  • 29 NC
  • 30 GND
  • 31 3V3
  • 32 GND

SPI Flash W25Q16 (U3)

  • 1 PB0 F_CS
  • 2 PB4 SPI1_MISO
  • 3 WP 3V3
  • 4 GND
  • 5 PB5 SPI1_MOSI
  • 6 PB3 SPI1_SCK
  • 7 HOLD 3V3
  • 8 VCC 3V3

JTAG/SWD debug (P1)

  • 1 3V3 Vref
  • 2 3V3 Vsupply
  • 3 PB4 TRST
  • 4 GND
  • 5 PA15 TDI
  • 6 GND
  • 7 PA13 TMS
  • 8 GND
  • 9 PA14 TCK
  • 10 GND
  • 11 NC RTCK
  • 12 GND
  • 13 PB3 TDO
  • 14 GND
  • 15 RST
  • 16 GND
  • 17 NC
  • 18 GND
  • 19 NC
  • 20 GND

ISP (J6)

  • 1 5V
  • 2 GND
  • 3 PA10 RXD1
  • 4 PA9 TXD1

USB (J4)

  • 1 VCC 5V
  • 2 PA11 USB_DM
  • 3 PA12 USB_DP
  • 4 NCC
  • 5 GND

Micro SD (U5)

  • 1 PC10 SDIO_D2
  • 2 PC11 SDIO_D3
  • 3 PD2 SDIO_CMD
  • 4 3V3
  • 5 PC12 SDIO_SCK
  • 6 GND
  • 7 PC8 SDIO_D0
  • 8 PC9 SDIO_D1
  • 9 GND

NRF24L01 (JP2)

  • 1 GND
  • 2 3V3
  • 3 PB6 NRF_CE
  • 4 PB7 NRF_CS
  • 5 PB3 SPI1_SCK
  • 6 PB5 SPI1_MOSI
  • 7 PB4 SPI1_MISO
  • 8 PB8 NRF_IRQ

User Button (K0)

  • PE4 KEY0, active low

User Button (K1)

  • PE3 KEY1, active low

User Button (WK_UP)

  • PA0 WK_UP, active high

User LED (D2)

  • PA6 LED0

User LED (D3)

  • PA7 LED1

Battery (Q1)

  • 1 BAT54C
  • 2 3V3
  • 3 GND VBAT

Links

Related boards

License

Licensed under the MIT License.

black_f407ve's People

Contributors

abelykh0 avatar mcauser avatar peddamat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

black_f407ve's Issues

An error when executing make BOARD=BLACK_F470VE...

when executing make BOARD=BLACK_F470VE, an error was encountered as follows:

In file included from eth.c:31:0:
eth.c: In function 'eth_mac_init':
eth.c:163:106: error: implicit declaration of function 'STATIC_AF_ETH_RMII_REF_CLK' [-Werror=implicit-function-declaration]
mp_hal_pin_config_alt_static(MICROPY_HW_ETH_RMII_REF_CLK, MP_HAL_PIN_MODE_ALT, MP_HAL_PIN_PULL_NONE, STATIC_AF_ETH_RMII_REF_CLK);
^
pin_static_af.h:42:48: note: in definition of macro 'mp_hal_pin_config_alt_static'
mp_hal_pin_config(pin_obj, mode, pull, fn_type(pin_obj)) /* Overflow Error => alt func not found */
^~~~~~~
cc1: all warnings being treated as errors
../../py/mkrules.mk:47: recipe for target 'build-BLACK_F407VE/eth.o' failed
make: *** [build-BLACK_F407VE/eth.o] Error 1

Anyone could explain how to resolve it ? thanks.

Feature support status in readme ?

Hello mcauser,

There is specification of the board listed in the readme, it would be nice to have a supported status for each line to help undersand waht one can do with this board.
maybe supported/unsupported/not tested

USB Drivers

Hi All,
Please need help in getting USB Drivers to work on windows 10 64bit.
Tried with my macbook pro and no success too.
Please help!!.

Thanks

Build failure - make: *** [build-BLACK_F407VE/firmware.elf] Error 1

Hello,

First, thank you for compiling this package!

I found a minor bug in your build instructions, and the MicroPython build system is a bit too involved for me to quickly fix.

I have to run "make BOARD=BLACK_F407VE" twice to complete the build successfully. For some reason the HAL drivers are not built during the first pass.

Here is the relevant stack trace:

LINK build-BLACK_F407VE/firmware.elf
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dac.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dac_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sd.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_sdmmc.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o: No such file or directory
arm-none-eabi-ld: cannot find build-BLACK_F407VE/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.o: No such file or directory
Makefile:439: recipe for target 'build-BLACK_F407VE/firmware.elf' failed
make: *** [build-BLACK_F407VE/firmware.elf] Error 1
me@NONCE:/micropython/ports/stm32$ make BOARD=BLACK_F407VE
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dac.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dac_ex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc_ex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sd.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_sdmmc.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c
CC ../../lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.c
LINK build-BLACK_F407VE/firmware.elf
arm-none-eabi-ld: warning: cannot find entry symbol _start; defaulting to 0000000000008000
text data bss dec hex filename
0 0 0 0 0 build-BLACK_F407VE/firmware.elf
Create build-BLACK_F407VE/firmware.dfu
GEN build-BLACK_F407VE/firmware.hex
me@NONCE:
/micropython/ports/stm32$

./mpconfigboard_common.h:175:0: error: "MICROPY_HW_ENABLE_CAN" redefined [-Werror]

commit 12468d1 (HEAD -> master, origin/master, origin/HEAD)
Merge: 14d612b 6ab7fb6
Author: Mike Causer [email protected]
Date: Tue Apr 10 09:51:00 2018 +1000

When I follow the step "make BOARD=BLACK_F407VE" I get the follow errors:

$ make BOARD=BLACK_F407VE
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
GEN build-BLACK_F407VE/genhdr/qstr.i.last
In file included from ./mpconfigport.h:32:0,
                 from ../../py/mpconfig.h:45,
                 from ../../py/mpstate.h:31,
                 from ../../py/mpstate.c:27:
./mpconfigboard_common.h:175:0: error: "MICROPY_HW_ENABLE_CAN" redefined [-Werror]
 #define MICROPY_HW_ENABLE_CAN (0)

In file included from ./mpconfigport.h:31:0,
                 from ../../py/mpconfig.h:45,
                 from ../../py/mpstate.h:31,
                 from ../../py/mpstate.c:27:
boards/BLACK_F407VE/mpconfigboard.h:12:0: note: this is the location of the previous definition
 #define MICROPY_HW_ENABLE_CAN       (1)

cc1: all warnings being treated as errors
In file included from ./mpconfigport.h:32:0,
                 from ../../py/mpconfig.h:45,
                 from ../../py/malloc.c:31:
./mpconfigboard_common.h:175:0: error: "MICROPY_HW_ENABLE_CAN" redefined [-Werror]
 #define MICROPY_HW_ENABLE_CAN (0)

In file included from ./mpconfigport.h:31:0,
                 from ../../py/mpconfig.h:45,
                 from ../../py/malloc.c:31:
boards/BLACK_F407VE/mpconfigboard.h:12:0: note: this is the location of the previous definition
 #define MICROPY_HW_ENABLE_CAN       (1)

...

cc1: all warnings being treated as errors
In file included from ./mpconfigport.h:32:0,
                 from ../../py/mpconfig.h:45,
                 from ../../py/obj.h:29,
                 from ../../extmod/modonewire.c:30:
./mpconfigboard_common.h:175:0: error: "MICROPY_HW_ENABLE_CAN" redefined [-Werror]
 #define MICROPY_HW_ENABLE_CAN (0)

In file included from ./mpconfigport.h:31:0,
                 from ../../py/mpconfig.h:45,
                 from ../../py/obj.h:29,
                 from ../../extmod/modonewire.c:30:
boards/BLACK_F407VE/mpconfigboard.h:12:0: note: this is the location of the previous definition
 #define MICROPY_HW_ENABLE_CAN       (1)

cc1: all warnings being treated as errors
make: *** [build-BLACK_F407VE/genhdr/qstr.i.last] Error 1
make: *** Deleting file `build-BLACK_F407VE/genhdr/qstr.i.last'

Deploy failure:

Hello,

I found one more issue when attempting to deploy the firmware.

I can compile and successfully deploy firmware created for one of the stock boards.

C:\Users\me\Downloads\dfu-util-0.9-win64>dfu-util -a 0 -D ....\firmware.dfu
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Match vendor ID from file: 0483
Match product ID from file: df11
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash "
file contains 1 DFU images
parsing DFU image 1
image for alternate setting 0, (1 elements, total size = 8)
parsing element 1, address = 0x08000000, size = 0
Last page at 0x07ffffff is not writeable

error when processing make BOARD=BLACK_F407VE

I have this error while trying to establish the definition:

make: *** no rule to make the target « lib/mbedtls/library/aes.c », necessary forre pour « build-BLACK_F407VE/genhdr/qstr.i.last ». Stop.

Has anyone seen VE boards with the TFT connector reversed?

Maybe I'm just unlucky but I recently bought ZE and VE boards and a (what looks like) a plugin TFT (3.2" ILI9341) display.
The display is totally compatible with the ZE board but the rows on the VE TFT connector seem to be mirrored and pin 32 is at 3v3 rather than ground hence a very warm regulator on the VE board.
I'll check the version numbers of the PCBs as soon as I have them in front of me again but in the meantime thought maybe I'm not alone in having incompatible compatible boards!
A somewhat older ZG board I have seems to be set up for a totally different LCD.

Ethernet Problem

Hello @mcauser Thanks for the driver I have compiled with your code. However I could not run the ethernet interface

import network
lan = network.LAN()
lan.active(True)

After I run the code I get the error below.

MicroPython v1.18-602-gf63b4f85a on 2022-06-10; MCUDEV STM32F407VE with STM32F407VE
Type "help()" for more information.
>>> import network
>>> lan = network.LAN()
>>> lan.active(True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 110] ETIMEDOUT
>>>

Network interface

Is it possible to user network interface on this devboard?
From micropython docs:

To use this module, a MicroPython variant/build with network capabilities must be installed. 

I don't see Driver in network module. Does it mean that this micropython port does not include network capabilities?
Thanks!

Corrupt board filesystem

This may be due to how I am deploying to the board. The mac keeps erroring out on deploy:

[~/micropython/ports/stm32]$ make BOARD=BLACK_F407VE deploy
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Writing build-BLACK_F407VE/firmware.dfu to the board
Traceback (most recent call last):
  File "../../tools/pydfu.py", line 20, in <module>
    import usb.core
ImportError: No module named usb.core
make: *** [deploy] Error 1

The only way I have found is to use 'dfu-util' which can easily be installed with brew.

[/micropython/ports/stm32]$ make USE_PYDFU=0 BOARD=BLACK_F407VE deploy
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Writing build-BLACK_F407VE/firmware.dfu to the board
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash  "
file contains 1 DFU images
parsing DFU image 1
image for alternate setting 0, (2 elements, total size = 315148)
parsing element 1, address = 0x08000000, size = 14712
Download	[=========================] 100%        14712 bytes
Download done.
parsing element 2, address = 0x08020000, size = 300420
Download	[=========================] 100%       300420 bytes
Download done.
done parsing DfuSe file

So I can attach to the board via the expected port of "/dev/cu.usbmodem1422" ( mac adds the cu.)

Traceback (most recent call last):
  File "main.py", line 1, in <module>
NameError: name 'ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇ' is not defined
MicroPython v1.9.3-588-g6b4b6d38-dirty on 2018-05-01; BLACK STM32F407VE with STM32F407VE
Type "help()" for more information.
>>> 

On first mount of the FS all the files contained garbage text. I can manually place boot.py and main.py on the mount and it seems to work. Just not sure if that's the right way to go.
Is there any way to re-flash the FS? Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.