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

Writing my own code.

Hi everyone,

I started working on nordic nRF52832 DK and tested out some examples. I think i am done with the examples now and am looking to write my own code apart from examples. Anyone who can guide me or at least lead me to where i can find proper guidance for writing my own code from scratch. Thanks!

  • In my experience, the best approach is to start working with an example that is relevant to what you want to achieve. Read it, try to modify it, and understand it. Most of the SDK libraries and drivers have fairly good documentation which you can use to get better understanding of them.

  • Hi Faizi If you are able to get the OPS(This has most of the Register information needed to create drivers) documentation you will be able to develop your own drivers. My personal experience with Nordic SDK has been horrible. Dated Tutorials, many funny paches, weird SDK.h work arounds and Changes in the APIs without a mention until someone complains. I spend over 7 hours to debug the TWI configurations. FYI that is not writing the APIs configurations.

    For instance something as simple as the UART is shared with NRF_LOG(bare in mind they believe uart is dated in IoT). The Segger_RTT can't be used directly and you will need to rewrite a complete application as most of the drivers sit on NRF_LOG.

    I have spend over a year and still I am really amazed by the poor documentation, SDK examples that don't work. (you have 15 versions and many years to standardise the SDK API, correct errors and bugs than spend time writing paces, and get the doxygen in order with a small example of the api as the Drivers are extremely interdependent, please stop referring people to dated tutorial that don't work with out some funny pache) 

    My advise if you have time consider using a RTOS as to avoid all Nordics SDK Problems. Atleast the APIs are standardised to C and you will be able to do as you want unless you system requires a Firmware solution.

    Asking Nordic for advise/questions is like speaking to a hungry horse it will only take note of you and help you with exact answer, if you have carrots in your hand or on a stick.

    I am forced to use nordic on a simple application, to get the information to work on TX POWER API, so cryptic. 

    when using the APIs correctly your outcome is messed up. 

    Could nordic employ a Copywriter to develop the documentation. 

     

    All the best!!!

  • Hello
    All the links you suggested are very old and I can't connect with them.
    I want to write my own code for a custom board with NRF52840 chip.
    I would be very grateful if you could guide me to the complete tutorial of creating new code for a custom board.

Related