Re: Compiling windbond spi flash driver

Bolivar, Marti

Hi Raz,

I'm curious what version of Zephyr you're running. Since your error
message mentions devicetree_fixups.h, it seems it might be on the older

The DT "fixups" feature was deprecated in Zephyr 2.3 when the current
devicetree.h API was first introduced. If you're using that version or
later, you should probably move away from using fixup files.

The build system will warn you about this deprecation if it discovers
any DTS fixup files.

For documentation on the jedec,spi-nor compatible in Kumar's example as
it is used in the current Zephyr tree, see its page in the bindings index:

If you're using fixup files because you are on Zephyr v1.14 LTS, you
will need to check the binding YAML file in
dts/bindings/mtd/jedec,spi-nor.yaml directly, as the generated bindings
index pages are not available in the LTS docs:

Note the LTS YAML bindings syntax is different than what you'll see v2.x

"Kumar Gala via"
<> writes:

Here’s an example:

- k

On Mar 24, 2021, at 11:27 AM, Raz <raziebe@...> wrote:

how do i describe winbond in the device tree ? i have the spi addresses but what about the flash ? is there an example ?

On Wed, Mar 24, 2021 at 5:56 PM Kumar Gala <kumar.gala@...> wrote:
Is the device described in the devicetree for the board you are building for?

- k

On Mar 24, 2021, at 10:52 AM, Raz <raziebe@...> wrote:

I am fail to compile winbond spi flash driver (SPI_FLASH_W25QXXD)I fail to compile:
I get errors like :
zephyr/include/generated/devicetree_fixups.h:205:32: error: 'DT_ST_STM32_SPI_FIFO_40003C00_BASE_ADDRESS' undeclared here (not in a f

Am I missing a step ?

Kind regards

Join to automatically receive all group messages.