W25Q16JVSSIQ flash power down

Good day

I am trying to send the flash to power down mode by shifting an instruction code.  The flash is located on spi.  I have found a method to send instruction code in spi_nor.c located in the zephyr drivers.  However, I am struggling to reference this in my project.  I have added 

CONFIG_SPI_NOR=y to my config file and added   "zephyr\drivers\flash\spi_nor.h" to my main.c file but the project doesn't include the functions used in spi_nor.c.  Is there something I need to do to include these functions.
Thank you in advance.
Kind regards,
Hassan
Parents
  • Hello Hassan,

    Thank you for contacting DevZone at NordicSemi.

    I have added 

    CONFIG_SPI_NOR=y to my config file and added   "zephyr\drivers\flash\spi_nor.h" to my main.c file but the project doesn't include the functions used in spi_nor.c

    Is it not that you need to have device in your DTS and then you reference it using DT macros,

    and accordingly when you will use it, it (zephyr) will be using the underlying driver

    I can see you have updated your ticket with more comments. I will look at it more tomorrow.

    Regards,
    Naeem

Reply
  • Hello Hassan,

    Thank you for contacting DevZone at NordicSemi.

    I have added 

    CONFIG_SPI_NOR=y to my config file and added   "zephyr\drivers\flash\spi_nor.h" to my main.c file but the project doesn't include the functions used in spi_nor.c

    Is it not that you need to have device in your DTS and then you reference it using DT macros,

    and accordingly when you will use it, it (zephyr) will be using the underlying driver

    I can see you have updated your ticket with more comments. I will look at it more tomorrow.

    Regards,
    Naeem

Children
Related