{"id":22253889,"url":"https://github.com/mcauser/weact_f411ceu6","last_synced_at":"2025-07-28T05:32:50.473Z","repository":{"id":53000257,"uuid":"223625456","full_name":"mcauser/WEACT_F411CEU6","owner":"mcauser","description":"MicroPython board definition for the WeAct STM32F411CEU6 board","archived":false,"fork":false,"pushed_at":"2021-04-10T11:50:43.000Z","size":6067,"stargazers_count":132,"open_issues_count":9,"forks_count":36,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-04T15:50:45.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcauser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-23T17:13:57.000Z","updated_at":"2025-02-06T12:14:35.000Z","dependencies_parsed_at":"2022-09-08T03:22:31.145Z","dependency_job_id":null,"html_url":"https://github.com/mcauser/WEACT_F411CEU6","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mcauser/WEACT_F411CEU6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FWEACT_F411CEU6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FWEACT_F411CEU6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FWEACT_F411CEU6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FWEACT_F411CEU6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcauser","download_url":"https://codeload.github.com/mcauser/WEACT_F411CEU6/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcauser%2FWEACT_F411CEU6/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267468386,"owners_count":24092334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T07:20:44.107Z","updated_at":"2025-07-28T05:32:49.805Z","avatar_url":"https://github.com/mcauser.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeAct STM32F411CEU6\n\nMicroPython board definition files for the WeAct V1.3 STM32F411CEU6 dev board.\n\n![board](docs/STM32F411CEU6.jpg)\n\n### Build the firmware\n\nClone the board definitions to your [MicroPython](https://github.com/micropython/micropython) `ports/stm32/boards` folder.\n\n```bash\ncd micropython/ports/stm32/boards\ngit clone https://github.com/mcauser/WEACT_F411CEU6.git\n\ncd ..\nmake BOARD=WEACT_F411CEU6\n```\n\n### Flashing via DFU\n\nThis board can be flashed using DFU. To put the board in DFU mode, disconnect\nUSB, connect `A9` to `A10` and reconnect USB. Press and hold `BOOT0`. Press\nand release `RESET`. Wait 0.5 seconds. Release `BOOT0`.\n\nList attached DFU capable devices to check you are in DFU mode.\n\n```bash\ndfu-util -l\n\nFound DFU: [0483:df11] ver=2200, devnum=12, cfg=1, intf=0, path=\"20-2\", alt=3, name=\"@Device Feature/0xFFFF0000/01*004 e\", serial=\"328A37623437\"\nFound DFU: [0483:df11] ver=2200, devnum=12, cfg=1, intf=0, path=\"20-2\", alt=2, name=\"@OTP Memory /0x1FFF7800/01*512 e,01*016 e\", serial=\"328A37623437\"\nFound DFU: [0483:df11] ver=2200, devnum=12, cfg=1, intf=0, path=\"20-2\", alt=1, name=\"@Option Bytes  /0x1FFFC000/01*016 e\", serial=\"328A37623437\"\nFound DFU: [0483:df11] ver=2200, devnum=12, cfg=1, intf=0, path=\"20-2\", alt=0, name=\"@Internal Flash  /0x08000000/04*016Kg,01*064Kg,03*128Kg\", serial=\"328A37623437\"\n```\n\nNow you can flash the board using USB with the command:\n\n```bash\nmake BOARD=WEACT_F411CEU6 deploy\n```\n\nOnce the upload is complete, disconnect USB, remove jumper between `A9`\nand `A10`, then reconnect USB.\n\nAlternatively, you can use the MicroPython command `pyb.bootloader()`\nto get into DFU mode without needing to use the switch.\n\nCurrently, you need to unplug and replug the board in order to switch from DFU\nmode back to regular mode.\n\n### Accessing the board\n\nOnce built and deployed, you can access the MicroPython REPL (the Python prompt) via USB serial.\n\n```bash\nscreen /dev/tty.usbmodem1422 115200\n# or\nscreen /dev/ttyACM0 115200\n```\n\n### Flash\n\nIn `mpconfigboard.h` you can configure the board to use F411CE internal flash or\nif you add a SPI flash chip to the bottom of the board you can use it instead.\n\nIf you use internal, there's only around 45kb free. With external you can have\n4-16 MB.\n\n```\n// Use internal flash (512 KByte):\n#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (1)\n\n// Or use external SPI flash:\n#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)\n```\n\nTested with:\n\n* Winbond W25Q32 (4 MByte)\n* Winbond W25Q64 (8 MByte)\n* Winbond W25Q128 (16 MByte)\n\nDefine the size that matches your flash chip.\n\n```\n// Winbond W25Q32 (4 MByte)\n#define MICROPY_HW_SPIFLASH_SIZE_BITS (32 * 1024 * 1024)\n\n// Or Winbond W25Q64 (8 MByte)\n#define MICROPY_HW_SPIFLASH_SIZE_BITS (64 * 1024 * 1024)\n\n// Or Winbond W25Q128 (16 MByte)\n#define MICROPY_HW_SPIFLASH_SIZE_BITS (128 * 1024 * 1024)\n```\n\nIf you use the wrong one, say 8 MB but you only have a 4 MB chip, it will\nappear as an 8 MB volume and let you write more than 4 MB, but you absolutely\nwill get data corruption.\n\nYou can also use external SPI flash modules.\nMost modules have WP/IO2 and HOLD/RESET/IO3 pulled high, so you can't use\nQuad SPI mode, only SPI.\n\n![spi flash](docs/spi-flash.jpg)\n\n### Specifications\n\n* STM32F411CEU6 ARM Cortex M4\n* 100MHz, 125 DMIPS / 1.25 DMIPS / MHz\n* 1.7V - 3.6V operating voltage\n* 25MHz system crystal\n* 32.768KHz RTC crystal\n* 2.54mm pitch pins\n* JTAG/SWD header\n* 512 KByte Flash, 128 KByte SRAM\n* 5x SPI, 3x USART, 5x I2S, 3x I2C\n* 1x SDIO\n* 1x USB 2.0 FS\n* (Unpopulated) Winbond W25Q32 32Mbit SPI Flash\n* 1x ADC (12-bit / 16-channel)\n* 6x general timers, 2x advanced timers\n* USB-C for power and comms\n* Red power LED\n* Blue user LED (PC13) active low\n* 1x button for bootloader selection\n* Reset button, 1x user buttons KEY (PA0)\n* 2x20 side pins + 1x4 ISP pins\n* no mounting holes\n* Dimensions: 52.81mm x 20.78mm\n\n### Exposed Port Pins\n\n* PA0-PA12, PA15\n* PB0-PB10, PB12-PB15\n* PC13-C15\n\n### Peripherals\n\n#### SPI Flash (U3) Unpopulated\n\n* 1 PA4 CS\n* 2 PA6 MISO\n* 3 3V3 WP\n* 4 GND GND\n* 5 PA7 MOSI\n* 6 PA5 SCK\n* 7 3V3 HOLD\n* 8 3V3 VCC\n\n#### SWD debug (P3)\n\n* 1 GND GND\n* 2 PA14 SWCLK\n* 3 PA13 SWDIO\n* 4 3V3 VCC\n\n#### USB-C (J1)\n\n* 1 GND\n* 2 VBUS 5V\n* 3 PA11 USB_DN\n* 4 PA12 USB_DP\n\n#### User LED\n\n* PC13 Blue LED\n\n### Links\n\n* [STM32F411CE on st.com](https://www.st.com/en/microcontrollers-microprocessors/stm32f411ce.html)\n* Buy on [AliExpress] or search for \"STM32F411CEU6\"\n* Buy on [Taobao](https://item.taobao.com/item.htm?id=596986293640)\n* [STM32F411 datasheet](docs/STM32F411_datasheet.pdf)\n* [STM32F411 reference manual](docs/STM32F411CEU6_manual.pdf)\n* [STM32F411CEU6 schematics](docs/STM32F411CEU6_schematics.pdf)\n* [STM32F411CEU6 PCB](docs/STM32F411CEU6_pcb.pdf)\n\n### Related boards\n\n* [MCUDev Black STM32F407VET6](https://github.com/mcauser/BLACK_F407VE)\n* [MCUDev Black STM32F407ZET6](https://github.com/mcauser/BLACK_F407ZE)\n* [MCUDev Black STM32F407ZGT6](https://github.com/mcauser/BLACK_F407ZG)\n* [MCUDev DevEBox STM32F407VET6](https://github.com/mcauser/MCUDEV_DEVEBOX_F407VET6)\n* [MCUDev DevEBox STM32F407VGT6](https://github.com/mcauser/MCUDEV_DEVEBOX_F407VGT6)\n* [WeAct STM32F411CEU6](https://github.com/mcauser/WEACT_F411CEU6) - this board\n* [VCC GND STM32F407VET6 Mini](https://github.com/mcauser/VCC_GND_F407VE)\n* [VCC GND STM32F407ZGT6 Mini](https://github.com/mcauser/VCC_GND_F407ZG)\n\n[AliExpress]: https://www.aliexpress.com/item/4000103610226.html\n\n## License\n\nLicensed under the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fweact_f411ceu6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcauser%2Fweact_f411ceu6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcauser%2Fweact_f411ceu6/lists"}