Skip to content

Instantly share code, notes, and snippets.

@HoriLiu
Last active April 28, 2018 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HoriLiu/2df48f753ec9f310f6aaa23d45f91ee2 to your computer and use it in GitHub Desktop.
Save HoriLiu/2df48f753ec9f310f6aaa23d45f91ee2 to your computer and use it in GitHub Desktop.
Dev Env STM32F401 by PYB Nano
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