<?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>Kinetis Microcontrollers中的主题 Re: In KL27 why does MTB_POSITION not read what is written?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865552#M51713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, now the cryptic note "...the active bits in this field are POSITION[14:3] == POSITION[POINTER[11:0]]" makes sense.&lt;BR /&gt;&lt;BR /&gt;Should not the 32-bit field diagram reflect that the top bits are always zero, to match the text?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2019 12:58:46 GMT</pubDate>
    <dc:creator>bobpaddock</dc:creator>
    <dc:date>2019-01-10T12:58:46Z</dc:date>
    <item>
      <title>In KL27 why does MTB_POSITION not read what is written?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865550#M51711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the Micro Trace Buffer in the KL27.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MTB_MASTER = 0UL; /* Disable MTB */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MTB_POSITION = MTB_BASE; /* Set position to start of RAM */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading MTB_POSITION back returns 0x6000 rather than the start of RAM.&lt;BR /&gt;MTB_BASE does read as the start of RAM, as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per the MKL27 datasheet 43.3.1.1 MTB_POSITION should read what is written,&lt;/P&gt;&lt;P&gt;except for the bottom three bits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tracing seems to work, other than this odd reading of MTB_POSITION.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What is going on here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 20:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865550#M51711</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2019-01-09T20:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: In KL27 why does MTB_POSITION not read what is written?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865551#M51712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;I guess your KL27 has 32k SRAM.&amp;nbsp; The value written in MTB_POSITION will be AND with 0x7FF8. Please see 43.3.1.1. In MCUXpresso or other IDE, you can observe this by written 0x1ffff000 to MTB_POSITION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 09:17:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865551#M51712</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-01-10T09:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: In KL27 why does MTB_POSITION not read what is written?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865552#M51713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, now the cryptic note "...the active bits in this field are POSITION[14:3] == POSITION[POINTER[11:0]]" makes sense.&lt;BR /&gt;&lt;BR /&gt;Should not the 32-bit field diagram reflect that the top bits are always zero, to match the text?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 12:58:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865552#M51713</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2019-01-10T12:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: In KL27 why does MTB_POSITION not read what is written?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865553#M51714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;yes. In fact, this chapter copies from ARM.&lt;/P&gt;&lt;P&gt;&lt;A href="https://static.docs.arm.com/ddi0486/b/DDI0486B_coresight_mtb_m0p_r0p1_trm.pdf"&gt;https://static.docs.arm.com/ddi0486/b/DDI0486B_coresight_mtb_m0p_r0p1_trm.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 05:23:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/In-KL27-why-does-MTB-POSITION-not-read-what-is-written/m-p/865553#M51714</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-01-11T05:23:19Z</dc:date>
    </item>
  </channel>
</rss>

