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

Changing Flash parameters in overlay file

My project is using nRF52840.   Early software development used an nRF52840-DK to develop most of the software.   Software is based on Zephyr using nRF Connect version 1.6.1.     I'm using the "littlefs" file system.   I got most things working using the nRF52840-DK.     I now have my custom board and it uses a slightly different (and larger) qspi-nor flash device.   

I'm still using the nRF52840-DK board file, but "modify" some of the parameters using an overlay file.    I know I need to change some of the parameters w.r.t. the flash.    I was able to modify the jedec-id for the new device, but am looking for some documentation that defines the parameters (keywords) in the board definition file (what some of them mean and format of values)   

Can you point me to these definitions (so I don't have to read through a lot of code :-))?

Thanks!

Parents
  • Hi again

    Okay, so it seems like the error you're seeing is that the device tries to mount with the settings/parameters you're using, but is not able to because the settings aren't stored correctly. CONFIG_APP_WIPE_STORAGE does not seem to be the way to go, seeing as the littleFS device hasn't been written to at all before. It should be sufficient to set up the device, let it fail to mount as LittleFS will have to format the device, and then reset it when the device is formatted correctly. If you then try to mount (automount should be fine as well), the device should be able to mount.

    If you're still running into errors, can you tell me in detail what changes you've made to the example project and maybe provide a link to the datasheet of the Flash device you're trying to format for?

    Best regards,

    Simon

  • Hi Simon,

    Thanks for your assistance!

    The only change I made to the example project was to add a line in the .overlay file for nrf52840kd_nrf52840 to change the jedec-id for the device I'm using.

    So the line:      jedec-id = [01 20 18];   was added as line 27 of that file.

    I know the size parameters will need to be changed, but figured that could be done after the basic operation was verified since the new part is larger than the one on the nRF52840-DK.

    The device I'm using is a Cypress S25FL128SAGNFI001  (https://www.digikey.com/en/products/detail/cypress-semiconductor-corp/S25FL128SAGNFI001/13167436)      

    The datasheet is: https://www.cypress.com/file/448601/download

    Thanks!

Reply Children
No Data
Related