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

Example for getting and setting rtc time using app using nrf52832

Hello,

I have just started learning nrf. I have an nrf52832 board and I want to get and set time using app.

I have seen this https://devzone.nordicsemi.com/f/nordic-q-a/57827/nrf5-calendar-example-questions

but haven't got much.

Please suggest me some examples.

Thank you in advance

Parents Reply Children
  • I am an Arduino programmer, just started learning nrf a few days ago.

    I am confused about how to set the path of the project.

    If you show me an example of how to set the path if I want to use any example from nordic.

    For example, I want to use this  https://devzone.nordicsemi.com/f/nordic-q-a/57827/nrf5-calendar-example-questions

    but when I am making build its showing

    Building ‘nrf_calendar_pca10040’ from solution ‘nrf_calendar_pca10040’ in configuration ‘Release’
    Linking nrf_calendar_pca10040.elf
    "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.32a/gcc/arm-none-eabi/bin/ld" -X --omagic -eReset_Handler --defsym=__do_debug_operation=__do_debug_operation_mempoll -EL --defsym=__vfprintf=__vfprintf_long --defsym=__vfscanf=__vfscanf_long --gc-sections "-TC:/nrf_sdk/nRF5SDK16/examples/my projects/nrf5-calendar-example-master/pca10040/blank/ses/Output/Release/Obj/nrf_calendar_pca10040/nrf_calendar_pca10040.ld" -Map Output/Release/Exe/nrf_calendar_pca10040.map -u_vectors -o Output/Release/Exe/nrf_calendar_pca10040.elf --emit-relocs --start-group "@C:/nrf_sdk/nRF5SDK16/examples/my projects/nrf5-calendar-example-master/pca10040/blank/ses/Output/Release/Obj/nrf_calendar_pca10040/nrf_calendar_pca10040.ind" --end-group
    Output/Release/Obj/nrf_calendar_pca10040/ses_startup_nrf_common.o: in function `InitializeUserMemorySections':
    undefined reference to `__RAM1_segment_end__'
    Build failed

    I think its linker error but i am not sure how to remove this.


  • Have you studied the links I provided?

    There's a lot there, but they cover what you need to know.

    You should start with the SDK examples before going "off-piste";  I would suggest that you start with ones which don't use a SoftDevice; ie, no Bluetooth.

    If you've not done "conventional" C programming before, it might be better to start with a "conventional" microcontroller, rather than nRF.

    Alternatively, there is an Arduino Core available for nRF (though it's a 3rd-party effort - not supported by Nordic).

    The nRF SDK, etc, does assume that you are already a competent embedded C developer.

  • Yes I have tried the examples and they are working, but i don't the functions in nrf and I am familiar with c programming. I have done almost  all the examples of the peripheral present in SDK 17.0

  • Hi

    Can you explain what you mean about the following?

    Rajbir Singh said:
    but i don't the functions in nrf

     What exactly are you struggling with here? Do you see this error when trying to build and run the nrf-calendar-example out of the box? To compile it, clone the repository in the [SDK]/examples/peripheral/ folder in SDK v16.0.0.

    What nRF52832 board are you using? Is this a Development Kit or some third party board? The nRF Calendar example is only designed for and tested with the nRF52832 and nRF52840 Development Kits.

    Best regards,

    Simon

Related