Sony's Developer World forum

    • Home
    • Forum guidelines

    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

    Spresense
    2
    2
    3818
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • uLipe
      uLipe last edited by

      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_firmware

      best, Felipe.

      1 Reply Last reply Reply Quote
      • K
        KamilTomaszewski DeveloperWorld last edited by

        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

        1 Reply Last reply Reply Quote
        • First post
          Last post
        Developer World
        Copyright © 2021 Sony Group Corporation. All rights reserved.
        • Contact us
        • Legal