Skip to content

boards: shields: add support for MikroElektronika Flash 6 Click#104615

Merged
aescolar merged 1 commit intozephyrproject-rtos:mainfrom
tiacsys:tiacsys/contrib/shields/mikroe_flash_6_click
Mar 12, 2026
Merged

boards: shields: add support for MikroElektronika Flash 6 Click#104615
aescolar merged 1 commit intozephyrproject-rtos:mainfrom
tiacsys:tiacsys/contrib/shields/mikroe_flash_6_click

Conversation

@rexut
Copy link
Copy Markdown
Contributor

@rexut rexut commented Feb 26, 2026

Add shield definition for the MikroElektronika Flash 6 Click shield, an mikroBUS compatible evaluation module for the Winbond W25Q128JV (128M-bit) SPI Serial NOR Flash chip.

Tested with the command mentioned on the index.rst page.

Product photo from https://cdn1-shop.mikroe.com/img/product/flash-6-click/flash-6-click-thickbox_default-1.jpg (Credit: MikroElektronika).

Resulting documentation: https://builds.zephyrproject.io/zephyr/pr/104615/docs/boards/shields/mikroe_flash_6_click/doc/index.html

Comment thread boards/shields/mikroe_flash_6_click/doc/index.rst Outdated
@rexut rexut force-pushed the tiacsys/contrib/shields/mikroe_flash_6_click branch 2 times, most recently from 45929e0 to 10875b5 Compare March 3, 2026 21:21
full_name: Flash 6 Click
vendor: mikroe
supported_features:
- mtd
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- mtd
- flash

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

But shouldn't the shield MikroE Flash 5 Click, which was added a few weeks ago, also be updated?

supported_features:
- mtd

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry my mistake, I confused mtd with mfd, mtd appears to be used in a number of shields so it's fine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No problem, but I felt mtd was wrong from the beginning. The sample matches only on tags flash or shell, not mtd. There is no sample with tag mtd. Same situation for tests, so it looks now correct.

Copy link
Copy Markdown
Contributor

@JarmouniA JarmouniA Mar 11, 2026

Choose a reason for hiding this comment

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

AFAIK it has no effect anyway because twister only considers boards' feature tags, not shield, and it's something that should be fixed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AFAIK it has no effect anyway because twister only considers boards' feature tags, not shield, and it's something that should be fixed.

It is used for the documentation so I am not sure why you are mentioning twister or that something needs to be fixed :)

"The sample matches only on tags flash or shell, not mtd. There is no sample with tag mtd. Same situation for tests, so it looks now correct."

Sorry I still don't understand what you mean. This file, just like board.yml files has nothing to do with Twister whatsoever?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am not sure why you are mentioning twister or that something needs to be fixed :)

We don't have a way to filter shields by supported features with twister, like we do with boards.

Copy link
Copy Markdown
Contributor

@JarmouniA JarmouniA Mar 11, 2026

Choose a reason for hiding this comment

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

Sorry I still don't understand what you mean. This file, just like board.yml files has nothing to do with Twister whatsoever?

board.yml does not have a supported list with tags, but what does is [board-name].yml hence the confusion.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mtd is fine. flash is not a binding type https://github.com/zephyrproject-rtos/zephyr/blob/main/dts/bindings/binding-types.txt

So shouldn't this be checked in CI!?

Sure, but it's not like we can check every possible documentation mistake (although, yes, this one should certainly be automated).
And this PR would have been reviewed and approved by the documentation and shields maintainer who pays attention to exactly these kind of things :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Please revert this change

Done.

@rexut rexut force-pushed the tiacsys/contrib/shields/mikroe_flash_6_click branch from 10875b5 to 63b73e8 Compare March 11, 2026 19:20
JarmouniA
JarmouniA previously approved these changes Mar 11, 2026
@JarmouniA JarmouniA added this to the v4.4.0 milestone Mar 11, 2026
@rexut rexut force-pushed the tiacsys/contrib/shields/mikroe_flash_6_click branch from 63b73e8 to b57f867 Compare March 11, 2026 20:20
@rexut rexut requested a review from JarmouniA March 11, 2026 20:24
JarmouniA
JarmouniA previously approved these changes Mar 11, 2026
Comment on lines +9 to +18
`Flash 6 Click`_ is a perfect solution for the mass storage option in various
embedded applications.

It features the W25Q128JV_ (128M-bit) Serial NOR Flash Memory from Winbond which
provides a storage solution for systems with limited space, pins and power.
The W25Q_ SpiFlash family incorporates the popular SPI interface and the medium
sized NOR non-volatile memory space. They are ideal for code shadowing to RAM,
executing code directly from Dual/Quad SPI (XIP) and storing voice, text and
data. The small 4KB sectors allow for greater flexibility in applications that
require data and parameter storage.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I really have mixed feelings about copy-pasting verbatim the marketing copy from the vendor when, just like here, it uses overly enthusiastic wording.
Not asking you to change it now as I can definitely live with it but something to probably pay attention to in the future.

Comment thread samples/drivers/flash_shell/sample.yaml Outdated
- gd32f350r_eval
harness: shell
extra_args:
- platform:frdm_mcxn947/mcxn947/cpu0:SHIELD="mikroe_flash_6_click"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is the sample actually functional as there are no partitions defined by the shield?

Copy link
Copy Markdown
Contributor Author

@rexut rexut Mar 11, 2026

Choose a reason for hiding this comment

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

Yes, it is. This sample is only a Zephyr Shell with Flash API and Shell enabled. Thus it doesn't need any partition, only the raw flash device for the shell sub-commands behind flash (flash page_info 0).

Copy link
Copy Markdown
Contributor Author

@rexut rexut Mar 11, 2026

Choose a reason for hiding this comment

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

But it's possible that the change in sample.yaml might not be accepted by the FRDM-MCXN947 board maintainer, because running this example on a real board would always require this shield — the SoC flash would no longer be usable — and I also see that the chosen isn't set to the flash in the shield.

The extension of sample.yaml is probably more useless than helpful. I'll remove it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Add shield definition for the MikroElektronika Flash 6 Click shield,
an mikroBUS compatible evaluation module for the Winbond W25Q128JV
(128M-bit) SPI Serial NOR Flash chip.

Tested with the command mentioned on the index.rst page.

Signed-off-by: Stephan Linz <linz@li-pro.net>
@rexut rexut force-pushed the tiacsys/contrib/shields/mikroe_flash_6_click branch from b57f867 to 60cce53 Compare March 11, 2026 21:36
@sonarqubecloud
Copy link
Copy Markdown

@rexut rexut requested a review from JarmouniA March 11, 2026 21:58
@rexut rexut requested a review from kartben March 11, 2026 21:59
@jfischer-no
Copy link
Copy Markdown
Contributor

There is also Flash 8 Click PR #105078

@aescolar aescolar merged commit 8f2a3fc into zephyrproject-rtos:main Mar 12, 2026
27 checks passed
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.

6 participants