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?
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?
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
I am not familiar with this RTS Sync sample, but it looks good. However I do agree that it looks like it could be cumbersome to port it.
What are you doing on the netcore? I guess you aren't using SDC and have code you want to run on both cores?
I guess your best bet now would be to port the LE Audio code, we do not have this available for NCS 1.7.
I'm looking into further details on what you need on the netcore side of this. Though it should be as easy as sending an IPC signal.
Regards,
Elfving
Hi Hi Elfving,
1. I hope to refer to the example of v2.2.0\nrf\applications\nrf5340_audio to realize the RTC synchronization between the network core and the application core, but the current problem is that there is only the implementation code of the application core in the nrf5340_audio example, and I don’t know the code of the network core How to achieve it; I want to control the RTC synchronization in the network core, such as setting the RTC value of the network core to the application core. Can you show me the part of the code that realizes the synchronization of the network core RTC in the example of nrf5340_audio? For example, how it initializes DPPI and IPC, how to trigger IPC and then give RTC to the application core.
2. Another point is that I don't understand what you mean by SDC.
Regards,
Kyrie
Hello Kyrie,
This controller on the network core is closed source unfortunately, I am looking into getting some info about it.
But I just found out that it would be better if you could avoid copying this code, as it is a copyright of Packetcraft (our LE Audio partners) - it doesn't belong to us. If you could use the RTC sample, that is probably safer. Though I understand that porting it to NCS 1.7 could be hard.
Kyrie.Li said:2. Another point is that I don't understand what you mean by SDC.
Regards,
Elfving
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
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.
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
zero said:But since we already use RPMsg, will this affect IPC?
I believe not. What are you planning on running on the netcore?
Regards,
Elfving