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

Develop for custom board with a nRF52805 module

I have a custom board with a nRF52805 module but I don't understand how the SDK works.

I followed some guide to simulate nRF52805 software, I had to patch some files in the SDK and change some preprocessor definitions. This guide worked for a simple example using GPIO. I want to use other peripherals like ADC or timers but the examples doesn't work.

Anybody here has an idea of how to get started using peripherals together in a project for the nRF52805??

  • Hi

    Are you using the nRF5 SDK or the nRFConnect SDK for development, and what version do you use?

    Please note that the nRF52805 has a very limited amount of peripherals, as it is the smallest and most bareboned SoC, so trying to run applications that uses more than one SPI, I2C, or UART instance for example, will fail. It also only has two available configurable ADC channels, only 10 GPIOs, and very limited RAM and Flash memory. Some of the examples might use GPIOs that does not exist on the nRF52805 even.

    I assume this is the guide you were following to create projects running on nRF52805 HW?

    Best regards,

    Simon

  • Hi

    I'm using the nRF5 SDK for development, the version that I'm using is 17.0.2.

    I understand that I have a limited amount of pins available, however I think that the SDK have some functions that make the process easier right? Like functions to configure an I / O pin, read, write. For the example I ran, I used "nrf_gpio.h" file that has some functions to configure exactly the pin that I want and have available on the nRF52805. Is there more libraries / drivers / functions that make the process similar in the other peripherals? If yes, do you know where is the documentation of all of this libraries/drivers?

    Yes, that is the tutorial I followed.

  • The documentation to all libraries and drivers in the SDK can be found here on our Infocenter. Have you also remembered to patch the SDK with the necessary patch files mentioned in the nRF52805 development guide (link in my last reply)? 

    There are also some already emulated projects for the nRF52805 which will only require two steps to make run on nRF52805 HW:

    1. In your IDE, remove the DEVELOP_IN_NRF52832 and NRFX_COREDEP_DELAY_US_LOOP_CYCLES defines from the compile flags.
    2. Remap GPIOs used in your project to pins available on the nRF52805 wlCSP. See the table under Hardware emulation of nRF52805 on the nRF52 DK.

    Best regards,

    Simon

  • Finally I was able to build and test an ADC project, I have now a better understanding of the SDK and a little about it structure. The legacy drivers and new drivers are so confusing, had a problem with that but with this thread I understood it better. Hope this will be fixed in the next version of the SDK.

    • "Modify the FLASH_SIZE and RAM_SIZE macros so that
      • FLASH_START + FLASH_SIZE <= FLASH_PH_SIZE
      • RAM_START + RAM_SIZE <= (RAM_PH_START + RAM_PH_SIZE)" for this step ,what are the exact values that we can use as FLASH_SIZE and RAM_SIZE macros/
    • Instead of Patch nrf_bootloader_info.h  nrf_bootloader_info.c is availble in the zip file ,do we need to replace or modify  nrf_bootloader_info.h   from another source 
    • I m working with ..\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart\pca10040e\s112\ses..,
Related