<?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>topic Bus fault when reading CnSC register from FTM1 channel 2 on MKV46 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bus-fault-when-reading-CnSC-register-from-FTM1-channel-2-on/m-p/2196178#M68008</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the NXP libraries to configure FTM1 on an MKV46F256VLL16 - but am getting a bus fault upon calling&amp;nbsp;&lt;SPAN&gt;FTM_SetupInputCapture. This appears to occur during the read to the CnSC register for channel 2. Other registers and channels of the same FTM module are not affected.&amp;nbsp;FTM_SetupInputCapture is called after&amp;nbsp;FTM_Init, which enables the clock gates to the module. Note that the debugger is stopped due to a bus fault at FTM_SetupInputCapture below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 164008.png" style="width: 837px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363358i84C7D26BBD270AE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 164008.png" alt="Screenshot 2025-10-30 164008.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inside FTM_SetupInputCapture:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 164020.png" style="width: 501px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363359iE87D92C3DBADD854/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 164020.png" alt="Screenshot 2025-10-30 164020.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The bus fault is marked as precise, and the BFAR is set to the address of FTM1 channel 2 CnSC, indicating that this is the access that caused the fault. Note that if the other FTM_SetupInputCapture line above was not commented out, the fault would still only occur when configuring the second channel.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 161317.png" style="width: 549px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363355i7E4BE3BBDFC18F47/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 161317.png" alt="Screenshot 2025-10-30 161317.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 161343.png" style="width: 312px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363354i3632AFBAD6ED2AAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 161343.png" alt="Screenshot 2025-10-30 161343.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 161426.png" style="width: 254px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363356i67E3AA9EBA103021/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 161426.png" alt="Screenshot 2025-10-30 161426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that reads of the CnSC register should be valid as long as the clock gate for FTM1 is enabled. I have also tried enabling the clock gate as shown below, and then reading the register - which also results in the same fault. This is done with interrupts disabled to eliminate the possibility of outside interference in the time domain. Any memory protection features remain at their default settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 164735.png" style="width: 606px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363361iC6EC1B3CF73FE0F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 164735.png" alt="Screenshot 2025-10-30 164735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice on how to address this issue would be much appreciated&lt;/P&gt;</description>
    <pubDate>Fri, 31 Oct 2025 00:09:10 GMT</pubDate>
    <dc:creator>af_e71c</dc:creator>
    <dc:date>2025-10-31T00:09:10Z</dc:date>
    <item>
      <title>Bus fault when reading CnSC register from FTM1 channel 2 on MKV46</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bus-fault-when-reading-CnSC-register-from-FTM1-channel-2-on/m-p/2196178#M68008</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the NXP libraries to configure FTM1 on an MKV46F256VLL16 - but am getting a bus fault upon calling&amp;nbsp;&lt;SPAN&gt;FTM_SetupInputCapture. This appears to occur during the read to the CnSC register for channel 2. Other registers and channels of the same FTM module are not affected.&amp;nbsp;FTM_SetupInputCapture is called after&amp;nbsp;FTM_Init, which enables the clock gates to the module. Note that the debugger is stopped due to a bus fault at FTM_SetupInputCapture below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 164008.png" style="width: 837px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363358i84C7D26BBD270AE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 164008.png" alt="Screenshot 2025-10-30 164008.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inside FTM_SetupInputCapture:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 164020.png" style="width: 501px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363359iE87D92C3DBADD854/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 164020.png" alt="Screenshot 2025-10-30 164020.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The bus fault is marked as precise, and the BFAR is set to the address of FTM1 channel 2 CnSC, indicating that this is the access that caused the fault. Note that if the other FTM_SetupInputCapture line above was not commented out, the fault would still only occur when configuring the second channel.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 161317.png" style="width: 549px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363355i7E4BE3BBDFC18F47/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 161317.png" alt="Screenshot 2025-10-30 161317.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 161343.png" style="width: 312px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363354i3632AFBAD6ED2AAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 161343.png" alt="Screenshot 2025-10-30 161343.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 161426.png" style="width: 254px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363356i67E3AA9EBA103021/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 161426.png" alt="Screenshot 2025-10-30 161426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that reads of the CnSC register should be valid as long as the clock gate for FTM1 is enabled. I have also tried enabling the clock gate as shown below, and then reading the register - which also results in the same fault. This is done with interrupts disabled to eliminate the possibility of outside interference in the time domain. Any memory protection features remain at their default settings.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-30 164735.png" style="width: 606px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363361iC6EC1B3CF73FE0F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-30 164735.png" alt="Screenshot 2025-10-30 164735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice on how to address this issue would be much appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 00:09:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bus-fault-when-reading-CnSC-register-from-FTM1-channel-2-on/m-p/2196178#M68008</guid>
      <dc:creator>af_e71c</dc:creator>
      <dc:date>2025-10-31T00:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bus fault when reading CnSC register from FTM1 channel 2 on MKV46</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bus-fault-when-reading-CnSC-register-from-FTM1-channel-2-on/m-p/2197660#M68014</link>
      <description>&lt;P&gt;I believe I have found the problem... FTM1 channel 2 does not actually exist on this device. The datasheet shows that FTM1 has only two channels, 0 and 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-31 115459.png" style="width: 466px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363753i0E162FA2C0A7F2BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-31 115459.png" alt="Screenshot 2025-10-31 115459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The datasheet appears to cover all parts the reference manual covers - which seems to mean that the reference manual refers to registers that don't actually exist in any of the hardware.&lt;/P&gt;&lt;P&gt;Datasheet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-31 115510.png" style="width: 371px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363754i5785A92BEE82C33E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-10-31 115510.png" alt="Screenshot 2025-10-31 115510.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-11-03 094615.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/363756i318FA9BC2A504DD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-11-03 094615.png" alt="Screenshot 2025-11-03 094615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's also worth noting that the pin configuration tool in MCUXpresso allows for configuring the I/O capture / control pin for FTM1 channel 2 - which is not documented in the datasheet - this creates further confusion about the (non) existence of FTM1 channel 2. My conclusion is that this part of the hardware does not exist - because it doesn't appear to actually work. It would be nice if the documentation would be updated to reflect that.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 17:51:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bus-fault-when-reading-CnSC-register-from-FTM1-channel-2-on/m-p/2197660#M68014</guid>
      <dc:creator>af_e71c</dc:creator>
      <dc:date>2025-11-03T17:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bus fault when reading CnSC register from FTM1 channel 2 on MKV46</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bus-fault-when-reading-CnSC-register-from-FTM1-channel-2-on/m-p/2198573#M68016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As you mentioned, FTM1 only has 2 channels. You can see the number of channels for each FTM instance in&amp;nbsp;Table 39-1. FTM Instantiations of the KV4x Reference Manual.&lt;/P&gt;
&lt;P&gt;I'm reviewing the comments you mentioned about the pin configuration tool. Are you referring to ConfigTools? Could you share with me how you were performing the initialization in the tool?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Pablo&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 22:42:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bus-fault-when-reading-CnSC-register-from-FTM1-channel-2-on/m-p/2198573#M68016</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2025-11-04T22:42:08Z</dc:date>
    </item>
  </channel>
</rss>

