标题: VCC_GND_F407 編譯給 micropython [打印本页]

作者: cmclia    时间: 2018-4-7 16:45
标题: VCC_GND_F407 編譯給 micropython

https://github.com/mcauser/VCC_GND_F407/tree/v1.0.1

VCC_GND_F407-1.0.1
micropython-1.9.3
這兩個檔案 然後開始編譯




https://github.com/mcauser/VCC_GND_F407/tree/v1.0.1
DOWNLOAD NEW VCC_GND

https://github.com/micropython/micropython/tree/v1.9.3
DOWNLOAD  1.9.3 MICRO PYTHON

第一先解開 micropython-1.9.3.zip
第二將VCC_GND_F407-1.0.1
解壓到 micropython1.9.3/ports/stm32/boards

/micropython-1.9.3/ports/stm32/boards/VCC_GND_F407-1.0.1$

多出一個 VCC_GND_F407-1.0.1 資料匣




cd micropython/ports/stm32
make BOARD=VCC_GND_F407-1.0.1


CC build-VCC_GND_F407-1.0.1/pins_VCC_GND_F407-1.0.1.c
LINK build-VCC_GND_F407-1.0.1/firmware.elf
   text    data     bss     dec     hex filename
323384      36   28312  351732   55df4 build-VCC_GND_F407-1.0.1/firmware.elf
Create build-VCC_GND_F407-1.0.1/firmware.dfu
Create build-VCC_GND_F407-1.0.1/firmware.hex













BIN DFU IN


/micropython-1.9.3/ports/stm32/build-VCC_GND_F407-1.0.1/
cd build-VCC_GND_F407-1.0.1/
ls




就OK了   
附送編譯OK BIN AND firmware.dfu


MY  GOOGLE  TECH  DATA
https://drive.google.com/drive/f ... G-y2Dq_?usp=sharing
MY  GOOGLE  TECH  DATA

我是用 STLINK 燒入的
燒好
插入 MICRO USB 會出現 2各東西 一個 快閃空間  一個需要 驅動 DRV FOR   STMicroelectronics STLink Virtual COM Port
因為我有玩四軸飛控 所以 虛擬串口驅動早就安裝好了

用 PUTTY 軟件  連到 你的虛擬串口 編號
I USB  putty  TTL  SOFT  選擇你的虛擬串口 COM ?? COM 31 ?

先來個 help()



>>> print("helllo")
helllo

--------------------
from pyb import LED

led = LED(1) # red led
led.toggle()
led.on()
led.off()





作者: a461624201    时间: 2020-10-13 01:21
我的STM32F407ZET6,在编译了github black_f407后,只能显示串口STMicroelectronics STLink Virtual COM Port ,一直没有U盘,
    os.listdir()可以看到根目录有 main.py和boot.py,当我用open  a,  wite 写入代码后,虽然F407插电可以执行,但插入USB后,这个虚拟串口就再也无法识别了,就无法对main.py 和boot.py代码编辑了。




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1