Last active
April 28, 2018 11:58
-
-
Save HoriLiu/2df48f753ec9f310f6aaa23d45f91ee2 to your computer and use it in GitHub Desktop.
Dev Env STM32F401 by PYB Nano
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install gcc-arm-none-eabi-bin in Archlinux's AUR | |
sudo pip install pyusb --pre | |
git clone https://github.com/micropython/micropython.git | |
Merge & modify ./stmhal/boards/PYBV11/.* for PYB Nano Board | |
#Edit linux udev setting for stm32 bootloader dfu (USB PID/VID) driver as below, and set pyb.bootloader() by upy command: | |
https://gist.github.com/HoriLiu/afb0e6d8ddb0bbe372dc1de0bb118ad0 | |
cd micropython | |
//add stm32 lib repo | |
git submodule update --init | |
cd ports/stm32 | |
make BOARD=PYBV11 deploy | |
# firmwares are in directory "board-PYBV11", deploy will program to stm32 in boot mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment