<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: i.MX93 M33 Core: How to get System Uptime (sec/nsec) for micro-ROS on Custom Board?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-M33-Core-How-to-get-System-Uptime-sec-nsec-for-micro-ROS/m-p/2285522#M243184</link>
    <description>Hi,&lt;BR /&gt;I have tried the tstmr.c demo program in the SDK example. It's not working as expected, tried in two different boards one custom board and avnet osm93, both of them doesn't gave any output in the terminal.&lt;BR /&gt;Upon debugging it's the TSTMR related functions are not working, the program's not going past "TSTMR_ReadTimeStamp()".&lt;BR /&gt;SDK Used : MCUXpresso SDK (v25.06.00).</description>
    <pubDate>Tue, 06 Jan 2026 08:41:46 GMT</pubDate>
    <dc:creator>anandhu-sudha</dc:creator>
    <dc:date>2026-01-06T08:41:46Z</dc:date>
    <item>
      <title>i.MX93 M33 Core: How to get System Uptime (sec/nsec) for micro-ROS on Custom Board?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-M33-Core-How-to-get-System-Uptime-sec-nsec-for-micro-ROS/m-p/2270842#M243130</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am currently porting &lt;STRONG&gt;micro-ROS&lt;/STRONG&gt; to the &lt;STRONG&gt;Cortex-M33&lt;/STRONG&gt; core of an i&lt;STRONG&gt;.MX93 (MIMX9352)&lt;/STRONG&gt; using a custom SOM and the &lt;STRONG&gt;MCUXpresso SDK (v25.06.00).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;have successfully established a &lt;STRONG&gt;UART transport&lt;/STRONG&gt; and connected to the &lt;STRONG&gt;micro-ROS agent.&lt;/STRONG&gt; My nodes and topics are created, but published data appears empty/invalid. After debugging, I’ve realized I need to provide high-resolution timestamps (seconds and nanoseconds) to the micro-ROS client to synchronize with the ROS 2 ecosystem.&lt;/P&gt;&lt;P&gt;Screenshots, Debug terminal output, Codes are attached below.&lt;/P&gt;&lt;P&gt;Micro-ros agent connection&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Micro-ros agent connection" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/371629iEB27E1E4768758B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="agent connection.png" alt="Micro-ros agent connection" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Micro-ros agent connection&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ROS Topic listing (Topic is emtpy (data not publishing))&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ROS Topic listing (But topic is empty)" style="width: 566px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/371630i4CCB1538ECA09C98/image-size/large?v=v2&amp;amp;px=999" role="button" title="ros topic listing.png" alt="ROS Topic listing (But topic is empty)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ROS Topic listing (But topic is empty)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Debug terminal output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Debug Console Init done &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Past lpuart init and custom trnsport open&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Past rclc support,node,publisher init&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Past rclc timer init&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Past rclc executor init, add_timer&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Inside while loop&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RCSOFTCHECK Failed: rclc_executor_spin_some(&amp;amp;executor, RCL_MS_TO_NS(100)) | Lin0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;after executor spin &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Inside while loop &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RCSOFTCHECK Failed: rclc_executor_spin_some(&amp;amp;executor, RCL_MS_TO_NS(100)) | Lin0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;after executor spin &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Inside while loop &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RCSOFTCHECK Failed: rclc_executor_spin_some(&amp;amp;executor, RCL_MS_TO_NS(100)) | Lin0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;after executor spin&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am struggling to find a reliable "System Uptime" or "Tick" function in the SDK that provides the precision required for rmw_publisher_publish.&lt;/P&gt;&lt;P&gt;I tried using the lptmr driver examples, but the code hangs during LPTMR_Init()&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is there a recommended SDK API for getting a high-resolution (nsec) monotonic timestamp since boot on the i.MX93 M33?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;For those who have implemented micro-ROS on i.MX9 series: Did you use a dedicated hardware timer, or is there a standard CMSIS/SDK "GetTime" function I should be using instead?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Environment Details:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Hardware: Custom i.MX93 SOM + EVB Baseboard&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Core:&lt;SPAN class=""&gt; Cortex-M331&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SDK: 25.06.00&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN class=""&gt;Toolchain:&lt;/SPAN&gt;&lt;SPAN class=""&gt; MCUXpresso IDE / VS Code Extension2&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any insights or code snippets for a 64-bit nanosecond counter implementation on this platform would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anandhu&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2026 05:58:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-M33-Core-How-to-get-System-Uptime-sec-nsec-for-micro-ROS/m-p/2270842#M243130</guid>
      <dc:creator>anandhu-sudha</dc:creator>
      <dc:date>2026-01-03T05:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX93 M33 Core: How to get System Uptime (sec/nsec) for micro-ROS on Custom Board?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-M33-Core-How-to-get-System-Uptime-sec-nsec-for-micro-ROS/m-p/2270981#M243135</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Please refer mcimx93evk\driver_examples\tstmr\tstmr.c demo for timestamp.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 01:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-M33-Core-How-to-get-System-Uptime-sec-nsec-for-micro-ROS/m-p/2270981#M243135</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2026-01-05T01:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX93 M33 Core: How to get System Uptime (sec/nsec) for micro-ROS on Custom Board?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-M33-Core-How-to-get-System-Uptime-sec-nsec-for-micro-ROS/m-p/2285522#M243184</link>
      <description>Hi,&lt;BR /&gt;I have tried the tstmr.c demo program in the SDK example. It's not working as expected, tried in two different boards one custom board and avnet osm93, both of them doesn't gave any output in the terminal.&lt;BR /&gt;Upon debugging it's the TSTMR related functions are not working, the program's not going past "TSTMR_ReadTimeStamp()".&lt;BR /&gt;SDK Used : MCUXpresso SDK (v25.06.00).</description>
      <pubDate>Tue, 06 Jan 2026 08:41:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-M33-Core-How-to-get-System-Uptime-sec-nsec-for-micro-ROS/m-p/2285522#M243184</guid>
      <dc:creator>anandhu-sudha</dc:creator>
      <dc:date>2026-01-06T08:41:46Z</dc:date>
    </item>
  </channel>
</rss>

