This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash as EEPROM and what is the maximum size of memory configuration/supports

Hi Team,

    We need to use Flash as EEPROM and we have the following queries,

1. How much maximum size of Flash can be configured/emulated as EEPROM/NVM?

2. Whether below pins should be shorted as described below to access flash memory as emulated EEPROM?
Master [ 3- TWI_SCL_M,4- TWI_SDA _M]   Slave pins [ 31-EEPROM_SIM_SCL_S,30-EEPROM_SIM_SDA_S ]

Thanks,

Venkatesh

Parents
  • Hi Venkatesh,

    The documentation for TWI slave master shows where the the example is, in the config.h that you find in <InstallFolder>\examples\peripheral\twi_master_with_twis_slave you can see that the pin config. 

    ```

    #define EEPROM_SIM_SCL_S         31   //!< Slave SCL pin.
    #define EEPROM_SIM_SDA_S         30   //!< Slave SDA pin.
    ```
     
    ```
    /* Master Configuration */
    #define MASTER_TWI_INST     0       //!< TWI interface used as a master accessing EEPROM memory.
    #define UART_TX_BUF_SIZE    1024    //!< UART TX buffer size.
    #define UART_RX_BUF_SIZE    32      //!< UART RX buffer size.
    #define TWI_SCL_M           3       //!< Master SCL pin.
    #define TWI_SDA_M           4       //!< Master SDA pin.
    #define IN_LINE_PRINT_CNT   (16u)   //!< Number of data bytes printed in a single line.
    ``` 
    Master [ 3- TWI_SCL_M,4- TWI_SDA _M]   Slave pins [ 31-EEPROM_SIM_SCL_S,30-EEPROM_SIM_SDA_S ]

    This will be correct yes.

     I dont have a max amount number but there is 256kB RAM on the nrf52840 so keep it below that. How much storage do you need?

     Regards,
    Jonathan

Reply
  • Hi Venkatesh,

    The documentation for TWI slave master shows where the the example is, in the config.h that you find in <InstallFolder>\examples\peripheral\twi_master_with_twis_slave you can see that the pin config. 

    ```

    #define EEPROM_SIM_SCL_S         31   //!< Slave SCL pin.
    #define EEPROM_SIM_SDA_S         30   //!< Slave SDA pin.
    ```
     
    ```
    /* Master Configuration */
    #define MASTER_TWI_INST     0       //!< TWI interface used as a master accessing EEPROM memory.
    #define UART_TX_BUF_SIZE    1024    //!< UART TX buffer size.
    #define UART_RX_BUF_SIZE    32      //!< UART RX buffer size.
    #define TWI_SCL_M           3       //!< Master SCL pin.
    #define TWI_SDA_M           4       //!< Master SDA pin.
    #define IN_LINE_PRINT_CNT   (16u)   //!< Number of data bytes printed in a single line.
    ``` 
    Master [ 3- TWI_SCL_M,4- TWI_SDA _M]   Slave pins [ 31-EEPROM_SIM_SCL_S,30-EEPROM_SIM_SDA_S ]

    This will be correct yes.

     I dont have a max amount number but there is 256kB RAM on the nrf52840 so keep it below that. How much storage do you need?

     Regards,
    Jonathan

Children
No Data
Related