This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flash Memory access issue

Hi everyone,

I'm using SEGGER Studio for development. I wrote a code for accessing Flash memory by modifying flshawrite example in SDK. 

Now I want to copy all dependencies of this project to another project. 

How can I do that ?

Thanks

Parents
  • Hi,

    Often it is best to start by choosing an example that already includes as much as possible of the libraries that you need for your application. That way it is less to add in addition.

    Adding a library to an nRF5 SDK project is unfortunately a very manual process. You must:

    • Include the library c files to the project, and use them from your project (including the needed #include directives).
    • Have a look at sdk_config.h, and overwrite or copy over the relevant setting sections for the newly included functionality. In your case, the sections related to the flash library used.
    • Add missing header file directories in project settings.

    Build errors can sometimes be a bit cryptic, but they usually point at what is missing. You can often find solutions to particular build erros by searching for the error text here on DevZone.

    Regards,
    Terje

Reply
  • Hi,

    Often it is best to start by choosing an example that already includes as much as possible of the libraries that you need for your application. That way it is less to add in addition.

    Adding a library to an nRF5 SDK project is unfortunately a very manual process. You must:

    • Include the library c files to the project, and use them from your project (including the needed #include directives).
    • Have a look at sdk_config.h, and overwrite or copy over the relevant setting sections for the newly included functionality. In your case, the sections related to the flash library used.
    • Add missing header file directories in project settings.

    Build errors can sometimes be a bit cryptic, but they usually point at what is missing. You can often find solutions to particular build erros by searching for the error text here on DevZone.

    Regards,
    Terje

Children
No Data
Related