Or any general how-to documents when the users want to set up any peripheral using the direct register access? I try not to use SDK for simplify and minimize the code side purpose.
Thank you
Or any general how-to documents when the users want to set up any peripheral using the direct register access? I try not to use SDK for simplify and minimize the code side purpose.
Thank you
So have you studied the RTC section in the Product Specification (aka, "datasheet") ?
The SDK exists to save you having to do (most of) that - so, if you choose to reject the SDK, it means that you have to do the detailed study of the hardware documentation!
The SDK itself is, of course, accesses the peripheral at the register level - so you can take the SDK code as your example!
Apart from just studying the source code - making full use of your IDE's code browsing facilities - I find that stepping through in the debugger is a good way to see what the SDK is doing ...
awneil,
Thank you for your reply. Yes, I had to went through the "datasheet" in order to get familiar with all the registers for different peripherals.
I am successfully done with configure any of the gpio pins without using the SDK, and from number of files from SDK, I shrunk it down to about 30 lines of C codes in one file.
I am aware of the purpose of the SDK is to helping the users; however, there is case for example like the app timer implementation. The example provide from Nordic is coming from SDK11, and I am using SDK14, and I spent lots of hours of research to go through the SDK both 11 and 14 since the SDKs are different in order to successfully implemented by using SDK, which I believe it will come down to RTC's register setting up.
I am just curious if you or anyone has any study/document of how much code space that we can save for the application that using SDK vs. the bear bone no SDK's usage.
Again, thank you so much for your time and your good suggestions.
awneil,
Thank you for your reply. Yes, I had to went through the "datasheet" in order to get familiar with all the registers for different peripherals.
I am successfully done with configure any of the gpio pins without using the SDK, and from number of files from SDK, I shrunk it down to about 30 lines of C codes in one file.
I am aware of the purpose of the SDK is to helping the users; however, there is case for example like the app timer implementation. The example provide from Nordic is coming from SDK11, and I am using SDK14, and I spent lots of hours of research to go through the SDK both 11 and 14 since the SDKs are different in order to successfully implemented by using SDK, which I believe it will come down to RTC's register setting up.
I am just curious if you or anyone has any study/document of how much code space that we can save for the application that using SDK vs. the bear bone no SDK's usage.
Again, thank you so much for your time and your good suggestions.