Skip to content

samples: spi_flash: add support for blackpill_f411ce #88309

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

Conversation

javad123javad
Copy link
Contributor

This commit adds flash support for blackpill_f411ce boards.

@javad123javad javad123javad force-pushed the project/weact_blackpillf411ce_add_flash branch from 41874d7 to 004c167 Compare April 8, 2025 15:35
@javad123javad javad123javad marked this pull request as ready for review April 8, 2025 15:52
@github-actions github-actions bot added the area: Samples Samples label Apr 8, 2025
@github-actions github-actions bot requested review from kartben and nashif April 8, 2025 15:53
*/

&spi1 {
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

are you sure this is correct? The board revision currently supported in Zephyr is v2.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On the board that I have on my side, this configuration is working. But when I change the miso to pb4, it doesn't work.

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes but my point is "your" board is probably not a v2.0... maybe a v2.1?
https://github.com/WeActStudio/WeActStudio.MiniSTM32F4x1/blob/master/HDK/README.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, just got it. I think so. Even though the rev number is not on my board.
I can modify it to use pb4 ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kartben can you please review this PR? Should I change it based on rev 2.1 board?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The board supported in Zephyr is rev 2.0 so either the overlay should be set to work with 2.0. I guess if you want to support 3.x this is instead blackpill_f401ce you are looking at? https://docs.zephyrproject.org/latest/boards/weact/blackpill_f401ce/doc/index.html

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it looks like this board, but the micro is F411. I will update the PR to be compatible with V2.0

Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks! one last question/comment: the flash chip is actually not populated out-of-the-box, right? if that's the case, maybe worth adding a comment in the overlay file indicating that it might need tweaks depending on which actual chip (size, etc.) people end up soldering

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On my board, it was already soldered. But I agree with you about adding comments in the overlay to modify the chip size or even pin assignments based on their actual boards.

@javad123javad javad123javad requested a review from kartben April 15, 2025 10:31
@javad123javad javad123javad force-pushed the project/weact_blackpillf411ce_add_flash branch 3 times, most recently from 2da3d67 to f2a7766 Compare April 23, 2025 15:43
Copy link
Collaborator

@kartben kartben left a comment

Choose a reason for hiding this comment

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

small typos but ready to go otherwise, thanks for your patience :)

Copy link
Collaborator

@kartben kartben left a comment

Choose a reason for hiding this comment

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

small typos but ready to go otherwise, thanks for your patience :)

This commit add spi nor flash support for blackpill_f411ce board

Signed-off-by: Javad Rahimipetroudi <[email protected]>
@javad123javad javad123javad force-pushed the project/weact_blackpillf411ce_add_flash branch from f2a7766 to a65057c Compare April 23, 2025 15:48
@kartben kartben requested a review from de-nordic April 23, 2025 16:15
Copy link
Collaborator

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

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

Looks OK.
I have no board to test, but at least builds in my env.

@kartben kartben merged commit 42683c3 into zephyrproject-rtos:main Apr 23, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants