zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.82k stars 6.6k forks source link

spi_nor flash multi-instance support #32100

Closed DarrylGamroth closed 3 weeks ago

DarrylGamroth commented 3 years ago

Is your enhancement proposal related to a problem? Please describe. I would like to use multiple SPI connected serial NOR flash ICs but the existing spi_nor driver only supports a single device.

Describe the solution you'd like Multi-instance support similar to spi_flash_at45.

Describe alternatives you've considered Using AT45 DataFlash except its capacity is too small.

madscientist159 commented 3 years ago

Just ran into this rather odd limitation. Looking into fixing it.

madscientist159 commented 3 years ago

Initial patch here: https://gitlab.raptorengineering.com/kestrel-collaboration/kestrel-firmware/zephyr-rtos/-/commit/e93d84d2621b569bc5700e7a8e57fb6fcc6661c5

We're blocked on submitting a PR for this until https://github.com/zephyrproject-rtos/zephyr/pull/32844 has been merged.

dakejahl commented 3 years ago

What's the status here? Looks like #32844 is merged. I am also interested in using multiple external flash devices.

Man0D commented 2 years ago

Hi, is there any news on this issue ?

madscientist159 commented 1 year ago

Unfortunately commit fb76f47f864 (merged shortly after #32844) broke this support, and with Zephyr 3.2 dropping support for key features required by Kestrel (#46758) we probably won't be looking at this in the near term. If someone else would like to pick it up we can test on existing hardware with multiple devices.

GeorgePriestner-Eaton commented 1 year ago

Is there any update on this please?

I am attempting to use external NOR flash with STM32H743 and getting 'undefined reference to `__device_dts_ord_132' error.

I disabled all SPI controllers other than spi3 (the one I'm using with the jedec,spi-nor) but still get the issue.

de-nordic commented 9 months ago

I am attempting to use external NOR flash with STM32H743 and getting 'undefined reference to `__device_dts_ord_132' error.

That describes nothing.

de-nordic commented 3 weeks ago

The request is quite vague but I guess that https://github.com/zephyrproject-rtos/zephyr/pull/70415 has already fixed it, closing. If not fixed, reopen and fill in with more details what is required.