<?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>S12 / MagniV MicrocontrollersのトピックRe: Simulating the data corruption between s12x and xgate</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simulating-the-data-corruption-between-s12x-and-xgate/m-p/484865#M12065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;S12X devices have a build-in trace buffer, which may help you debug your problem. You can set up a breakpoint, which is triggered whenever a zero is read from a specific address and the trace buffer can record either the execution flows or the memory accesses of CPU and XGATE leading up to the breakpoint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 13:44:54 GMT</pubDate>
    <dc:creator>HSW</dc:creator>
    <dc:date>2016-02-03T13:44:54Z</dc:date>
    <item>
      <title>Simulating the data corruption between s12x and xgate</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simulating-the-data-corruption-between-s12x-and-xgate/m-p/484864#M12064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am facing an issue&amp;nbsp; where the data received over CAN by Xgate and processed by the s12x. I am sending a proper value on CAN message on xgate but some how the s12x is reading as 0 or some invalid values. I am guessing some type of corruption of data between s12x and xgate and i am not sure as well. The problem is it happens once several hours or it may not happen so i cannot reproduce it easily. Just wanted to know if i can simulate the data corruption between s12x and xgate by sending huge number of can messages or some other way. Please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 02:47:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simulating-the-data-corruption-between-s12x-and-xgate/m-p/484864#M12064</guid>
      <dc:creator>rahulkrishna</dc:creator>
      <dc:date>2016-02-03T02:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating the data corruption between s12x and xgate</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simulating-the-data-corruption-between-s12x-and-xgate/m-p/484865#M12065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;S12X devices have a build-in trace buffer, which may help you debug your problem. You can set up a breakpoint, which is triggered whenever a zero is read from a specific address and the trace buffer can record either the execution flows or the memory accesses of CPU and XGATE leading up to the breakpoint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 13:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simulating-the-data-corruption-between-s12x-and-xgate/m-p/484865#M12065</guid>
      <dc:creator>HSW</dc:creator>
      <dc:date>2016-02-03T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating the data corruption between s12x and xgate</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simulating-the-data-corruption-between-s12x-and-xgate/m-p/484866#M12066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rahul,&lt;/P&gt;&lt;P&gt;How you share data between CPU and XGATE cores?&lt;/P&gt;&lt;P&gt;I suppose for now that you use shared RAM. Correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you should use synchronization tools to drive access to these data – for example hardware semaphores.&lt;/P&gt;&lt;P&gt;Since CAN message typically contains more than one byte, there is high chance that simultaneous XGATE write and CPU read could cause data corruption.&lt;/P&gt;&lt;P&gt;Semaphores could be used for driving access to peripheral, variables in RAM,…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attachment is example how to use semaphores.&lt;/P&gt;&lt;P&gt;BTW: which MCU you use?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 14:51:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simulating-the-data-corruption-between-s12x-and-xgate/m-p/484866#M12066</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-02-03T14:51:43Z</dc:date>
    </item>
  </channel>
</rss>

