<?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>MQX Software Solutions中的主题 Re: Undocumented Behavior/Bug(?) traced to OSA_SemmaCreate</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Undocumented-Behavior-Bug-traced-to-OSA-SemmaCreate/m-p/432524#M14475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandlin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reporting this issue, I submitted a ticket for this. I will keep you informed when I have results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 02:11:53 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2015-09-11T02:11:53Z</dc:date>
    <item>
      <title>Undocumented Behavior/Bug(?) traced to OSA_SemmaCreate</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Undocumented-Behavior-Bug-traced-to-OSA-SemmaCreate/m-p/432523#M14474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into a problem using nio_pipe_write. Writes appeared to be blocked by default. I finally traced the problem to OSA_SemmaCreate. The pipe initialization function takes a _mqx_uint argument, which is a uint32, to set pipe length. It uses this as the initial value to create a lwsemaphore that tracks the amount of data written into the pipe, and blocks writes when the pipe is full. The problem is that the nio_pipe_init routine uses the OSA, and the OSA_SemmaCreate function specifies uint8, for reasons unknown. I specified a pipe length of 256 bytes, which was truncated to zero by the OSA_SemmaCreate call. Therefore, pipe writes were blocked at pipe initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I can simply reduce my pipe length by one byte, but I anticipate the need for longer pipes further on. Are there repercussions I am not aware of if I simply modified the OSA_SemmaCreate function call to use a uint32 initial value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 00:21:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Undocumented-Behavior-Bug-traced-to-OSA-SemmaCreate/m-p/432523#M14474</guid>
      <dc:creator>mikesandlin</dc:creator>
      <dc:date>2015-09-08T00:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Undocumented Behavior/Bug(?) traced to OSA_SemmaCreate</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Undocumented-Behavior-Bug-traced-to-OSA-SemmaCreate/m-p/432524#M14475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandlin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reporting this issue, I submitted a ticket for this. I will keep you informed when I have results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 02:11:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Undocumented-Behavior-Bug-traced-to-OSA-SemmaCreate/m-p/432524#M14475</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-09-11T02:11:53Z</dc:date>
    </item>
  </channel>
</rss>

