Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xreef/stm32f401cc_micropython_firmware
The descriptor and the precompiled build of the MicroPython firmware for the WeAct Studio STM32F401CCU6
https://github.com/xreef/stm32f401cc_micropython_firmware
micropython stm32 stm32f4 stm32f401 stm32f401ccu6 weact weact-blackpill
Last synced: 8 days ago
JSON representation
The descriptor and the precompiled build of the MicroPython firmware for the WeAct Studio STM32F401CCU6
- Host: GitHub
- URL: https://github.com/xreef/stm32f401cc_micropython_firmware
- Owner: xreef
- Created: 2023-05-21T10:24:42.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-03T06:07:21.000Z (over 1 year ago)
- Last Synced: 2024-05-21T12:05:25.281Z (6 months ago)
- Topics: micropython, stm32, stm32f4, stm32f401, stm32f401ccu6, weact, weact-blackpill
- Language: C
- Homepage:
- Size: 4.24 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WeAct Studio STM32F401CCU6 Core Board
You can find more information on our website: [www.mischianti.org](https://mischianti.org/2023/08/01/micropython-on-nucleo-stm32-stm32f411ce-and-stm32f401cc-flashing-firmware-and-basic-tools/)
If there is no `WeAct` and `version number` on the back of the board, the chip batch is `537` or old, the stitches and board are packaged in one bag, `the board screen printing is wrong`(`3V3` is going to be labeled `V3V`), it is definitely pirated.
[Original work from WeAct](https://github.com/WeActStudio/WeAct_F411CE-MicroPython)
## How to build micropython need ubuntu or Win10 subsystem Linux
It is not recommended to compile the firmware yourself, just use the firmware provided by us. If you really need to compile, please bring your own basic Linux knowledge. The following are the operations under Linux
``` sh
git clone https://github.com/micropython/micropython.git
cd micropython
git submodule update --init
cd mpy-cross
make -j4
cd ../ports/stm32/boards
git clone https://github.com/WeActTC/WeAct_F411CE-MicroPython.git WeAct_F411CE
cd ..
make BOARD=WeAct_F411CE CROSS_COMPILE=/mnt/e/MCU/tools/gcc-arm-none-eabi-8-2018-q4-major/bin/arm-none-eabi- -j
# or
make BOARD=WeAct_F411CE -j
```> Note: `CROSS_COMPILE` Change to your own compiler path
## mpconfigboard.h
``` c
/* BOARD Ver 2.0 set 1 ,other set 0 ex.V1.3,V2.1 V3.0 */
#define VERSION_V20 (1)/* Use the built-in flash to change to 1 , use the external flash to change to 0 */
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (1)// Flash Size:
// 4MB Flash 32Mbit
// 8MB Flash 64Mbit
// 16MB Flash 128Mbit
#define MICROPY_HW_SPIFLASH_SIZE_BITS (32 * 1024 * 1024)
```SPI FLASH:
``` c
#define MICROPY_HW_SPIFLASH_CS (pin_A4)
#define MICROPY_HW_SPIFLASH_SCK (pin_A5)
#if VERSION_V20
#define MICROPY_HW_SPIFLASH_MISO (pin_B4)
#else
#define MICROPY_HW_SPIFLASH_MISO (pin_A6)
#endif
#define MICROPY_HW_SPIFLASH_MOSI (pin_A7)
```