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!

Parents
  • Can you elaborate on what you are after?

    The examples and documentation are intended precisely for showing you how you can write your own code using nRF libraries etc. Essentially you should not normally have to write everything yourself, but you can copy in what you need from relevant examples, so that you only have to glue it together with your own code and write application specific functionality that is not part of the SDK.

  • Thank You so much for your response sir!
    I just wanted to learn programming this dk on my own. You see i am a beginner and am not able to completely understand the example codes about how things are happening so i wanted to know if there were any tutorials which would explain each and every function of any example say ble_app_uart so i can get a know how of things because understanding on my own is getting difficult. I can understand what task a specific function is performing but i cant seem to understand HOW the function is performing that task.

Reply
  • Thank You so much for your response sir!
    I just wanted to learn programming this dk on my own. You see i am a beginner and am not able to completely understand the example codes about how things are happening so i wanted to know if there were any tutorials which would explain each and every function of any example say ble_app_uart so i can get a know how of things because understanding on my own is getting difficult. I can understand what task a specific function is performing but i cant seem to understand HOW the function is performing that task.

Children
  • Hi,

    I see. Then I recommend you to start with the SDK Getting Started guide. After that, you may want to look at some of the tutorials, though unfortunately they are quite outdated. Depending on your scope, you might also want to look at the nRF Getting started guide which gives a quick overview of the whole product development process.

  • Thank you so much, and yes you are right i looked at the tutorials and they were outdated. I've also already gone through the SDK starting guide and will now study the nRF getting started guide but i dont think they will cover any example code function by function. Anything else you would like to refer where i can understand the SDK v15?

  • 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