[NCS2.2.0] APP Core is time-synchronized with NET Core timer.

Dear Support Team,
The nRF5340's app Core and net Core both use timer, how can I realize that app Core and net Core Timer are time synchronized and can clear the timer at the same time? Are there any examples?

Parents
  • Hello,

    We actually did this for our audio application, so you can see how its done there! Here is the appcore side, and the netcore will send a signal when it boots up.

    Regards,

    Elfving

  • Hi Elfving,

      Can you reply to this? We urgently need to complete the RTC synchronization function of the 5340 network core application core in the past few days, whether it is the way of clearing or synchronizing an RTC value. But it needs to be implemented on ncs 1.7.0, there is a routine in v2.2.0\zephyr\samples\boards\nrf\nrf53_sync_rtc, I tried to port the code to version 1.7.0, but found that there are few in 1.7.0 sdk Too many components to try to complete. In addition, the routines found in v2.2.0\nrf\applications\nrf5340_audio also have RTC synchronization routines, but only the implementation of the application core, the network core does not know how to achieve it, so we hope:
    1. Give a network core that can run on ncs 1.7.0 the routine of core synchronization RTC or
    2. Tell us how to deal with the network core according to the method of v2.2.0\nrf\applications\nrf5340_audio?

    Regards,

    Kyrie

  • Hi Hi Elfving,

    If we can't get the information about the network core code, then we can only try to port the RTC routines of 2.2.0 to 1.7.0. I hope you can provide some help, such as directly operating the registers to realize such a function? You are more familiar with this aspect, I am also trying to transplant.

    Regards,

    Kyrie

  • Kyrie.Li said:
    If we can't get the information about the network core code,

    He wouldn't be able to get the code itself, no. 

    Kyrie.Li said:
    then we can only try to port the RTC routines of 2.2.0 to 1.7.0.

    That would be best. 

    Kyrie.Li said:
    I hope you can provide some help, such as directly operating the registers to realize such a function?

    I will of course try to help you with this. Though I am little but concerned about your timeframe - that you had to get this completed within a few days? 

    Regards,

    Elfving

  • Hi Hi Elfving,

    Yes, I need to get this done by February 26th. In addition, the RPMsg Service component is useful in my current program code. Please pay attention to see if there is any conflict when implementing related functions. You can implement it first, and hope that this function can be implemented in the next few days.

    Regards,

    Kyrie

  • Hello everyone.

    Here is the sample ported down for you. I had a coworker do it, and since he only had NCS 1.8 downloaded at the time, that is what he used. It probably works on NCS 1.7 as well, and if it doesn't I don't think it would be a lot of hassle to port it down again.

    sync_timer_nrf5340_v2.zip

    Regards,

    Elfving

  • Hi Elfving,

    Thank you for your support and help, it may help us a lot. But since we already use RPMsg, will this affect IPC? Of course, we will also verify the test first.

    Regards,

    Zero

Reply Children
Related