Thanks for the answer with example, i guess the port for my F401CC (256 kb) doesn't support it, gonna wait for my F411CE boards.
WeAct STM32F411CEU6 black pill
-
- Posts: 2
- Joined: Mon Jan 11, 2021 12:47 pm
Re: WeAct STM32F411CEU6 black pill
Re: WeAct STM32F411CEU6 black pill
Hi,
I'm quite new to MP and STM32, so please forgive me if my question is too trivial!
Is there a way to extend the allowed maximum firmware size during compile when I use W25Q128?
I figured out that I need to search around FLASH_TEXT and FLASH_FS... but I'm stuck here.
My reason:
I try to compile a FW with WIZNET5K and LWIP support and I try to freeze the MicroWebSrv2 module into it.
Without the MicroWebSrv2 it compiles fine, but as soon as I try to integrate it, I got the following error:
I'm quite new to MP and STM32, so please forgive me if my question is too trivial!
Is there a way to extend the allowed maximum firmware size during compile when I use W25Q128?
I figured out that I need to search around FLASH_TEXT and FLASH_FS... but I'm stuck here.
My reason:
I try to compile a FW with WIZNET5K and LWIP support and I try to freeze the MicroWebSrv2 module into it.
Code: Select all
make MICROPY_PY_WIZNET5K=5500 MICROPY_PY_LWIP=1 BOARD=WEACT_F411CEU6 -j2
Code: Select all
LINK build-WEACT_F411CEU6/firmware.elf
arm-none-eabi-ld: build-WEACT_F411CEU6/firmware.elf section `.text' will not fit in region `FLASH_TEXT'
arm-none-eabi-ld: region `FLASH_TEXT' overflowed by 30536 bytes
make: *** [Makefile:669: build-WEACT_F411CEU6/firmware.elf] Error 1
Re: WeAct STM32F411CEU6 black pill
Hello everyone! I have this "black pill" f401ccu6 board. I bought it a long time ago and haven't used it, but I now need a board on which to put mycropython. On the back of the board it says "weact v2.0". I wasn't able to find an image for it, the official github page has documentation and images for f401ceu6. Any way to get micropython running on this?
-
- Posts: 424
- Joined: Wed Apr 08, 2015 5:19 am
Re: WeAct STM32F411CEU6 black pill
This is apparently an update of this variant of the Black Pill:
https://stm32-base.org/boards/STM32F401 ... -Pill-V1.2
You need to compile your own firmware for this variant of the Black Pill.
You should be able to use this board definition from WeACT:
https://github.com/YXZhu/micropython/tr ... Act_F401CC
You can follow the instructions for mcausers board definition for the STM32F411CEU6:
https://github.com/mcauser/WEACT_F411CEU6
And adapt them where necessary.
Hth, Chris
https://stm32-base.org/boards/STM32F401 ... -Pill-V1.2
You need to compile your own firmware for this variant of the Black Pill.
You should be able to use this board definition from WeACT:
https://github.com/YXZhu/micropython/tr ... Act_F401CC
You can follow the instructions for mcausers board definition for the STM32F411CEU6:
https://github.com/mcauser/WEACT_F411CEU6
And adapt them where necessary.
Hth, Chris
Re: WeAct STM32F411CEU6 black pill
Ok so I tried doing just that, got the board definitions and tried building but I get a bunch of errors and compilation stops:
and so on...
Code: Select all
In file included from ./mpconfigport.h:31,
from ../../py/mpconfig.h:62,
from ../../lib/oofatfs/ffconf.h:30,
from ../../lib/oofatfs/ff.h:33,
from ../../lib/oofatfs/ff.c:28:
boards/WeAct_F401CC/mpconfigboard.h:19: error: "MICROPY_VFS_FAT" redefined [-Werror]
19 | #define MICROPY_VFS_FAT (0)
|
<command-line>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
In file included from ./mpconfigport.h:31,
from ../../py/mpconfig.h:62,
from ../../lib/oofatfs/ffconf.h:30,
from ../../lib/oofatfs/ff.h:33,
from ../../lib/oofatfs/ffunicode.c:26:
boards/WeAct_F401CC/mpconfigboard.h:19: error: "MICROPY_VFS_FAT" redefined [-Werror]
19 | #define MICROPY_VFS_FAT (0)
|