Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
ASMP Spresense: Timing in worker CPU
-
Hey guys could you help me on a question? I'm currently working on my multicore application, and all is working fine, I'm able to allocate 1, 2 or all cpus if I want to offload processing, but since I need some real time constraints on cpu workers, how could I obtain a worker cpu clock rate? Since they're ARM CM4F, are they equiped each one with a Systick, it is just for confirmation. If not there are another way to perform some tight temporization on worker CPU?
For those looking code, see the current firmware repo compatible with spresense sdk structure:
https://github.com/uLipe/spresense_ros_firmwarebest, Felipe.
-
Hi Felipe,
Each CPU runs on the same clock rate, so cxd56_get_cpu_baseclk() is useful for this purpose. It is placed at sdk/bsp/src/cxd56_clock.c. Each CPU has own SYSTICK.
Best regards,
Kamil Tomaszewski