Skip to content

stm32/boards/WEACTV20_F411: Add support for WeAct v2.0 'blackpill' board #5642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

jeremyherbert
Copy link
Contributor

The WeAct v2.0 board (also sometimes known as the "blackpill") is a micropython-capable board based on the STM32F411CE (512kB flash, 128kB SRAM) that costs only a few US dollars and is widely available from various Chinese suppliers. It is a breadboard compatible breakout-style board that has reset/BOOT0/user switches, a user LED and a USB C connector, along with 25MHz and 32.768kHz crystals.

Although the board has an unpopulated flash footprint, I don't have any SPI flash ICs around to test it and add support, so this only supports internal flash for the time being. I have ordered some and will try to test the external flash when I get a chance.

moved from #5582 to a branch

@mcauser
Copy link
Contributor

mcauser commented Feb 14, 2020

(Board designer) YXZhu's version: https://github.com/YXZhu/micropython/tree/master/ports/stm32/boards/WeAct_F411CE

My slightly modified version: https://github.com/mcauser/WEACT_F411CEU6

Perhaps we should combine our efforts?

YXZhu also has a F401 board:
https://github.com/YXZhu/micropython/tree/master/ports/stm32/boards/WeAct_F401CC

@jeremyherbert
Copy link
Contributor Author

Yes please! Is there a reason why @YXZhu did not create a PR for this board?

@YXZhu
Copy link

YXZhu commented Feb 14, 2020

I had too many things to do and was afraid I wouldn't have time to maintain micropython so I didn't create a PR.

@jeremyherbert
Copy link
Contributor Author

I've just updated and tested this with the external flash, it should be ready for merging now. It's based on the work linked above (and the source repos are linked in the header).

@mcauser there is an issue in your repo, for the V2.0 board the SPI flash MISO is connected to PB4.

@YXZhu is there a reason why the SPI flash was changed from PA6 to PB4?

@YXZhu
Copy link

YXZhu commented Mar 8, 2020

The SDIO peripheral has a SDIO_CMD pin in PA6. If the Flash USES PA6, the SDIO cannot be used. Later, considering that we seldom USES the SDIO peripheral, the V2.1+ version of Flash re-uses PA6

@jeremyherbert
Copy link
Contributor Author

Ok thanks, that makes sense. I just found the schematics too: https://github.com/WeActTC/MiniF4-STM32F4x1

And I see there is now a v2.2, but it doesn’t seem to be available on aliexpress yet. I will have to keep an eye out for them.

@dpgeorge
Copy link
Member

Is this still useful/interesting to merge?

@mcauser would it make your repo for this board obsolete?

@jeremyherbert
Copy link
Contributor Author

I think this is still useful (I still use it), are there any changes that need to be made for it to be merged?

@dpgeorge
Copy link
Member

are there any changes that need to be made for it to be merged?

If you could rebase on master that would be a good start.

#define MICROPY_HW_I2C3_SCL (pin_A8)
#define MICROPY_HW_I2C3_SDA (pin_B8)

// SPI busses
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change busses -> buses

tannewt added a commit to tannewt/circuitpython that referenced this pull request Dec 2, 2021
@dpgeorge
Copy link
Member

Closing due to inactivity. Feel free to reopen with board.json and images if the board is still relevant and in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants