<?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 RT Crossover MCUsのトピックChecking Fuses</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1719041#M26712</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently working with the IMXRT1176 and am looking for a way to verify what boot fuses have been blown. I've been reading through User Manual and had a look at the peripherals view in MCUXpresso but haven't yet seen anything that could indicate what fuses are blown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rory&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 20:50:29 GMT</pubDate>
    <dc:creator>rnicolls</dc:creator>
    <dc:date>2023-09-07T20:50:29Z</dc:date>
    <item>
      <title>Checking Fuses</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1719041#M26712</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently working with the IMXRT1176 and am looking for a way to verify what boot fuses have been blown. I've been reading through User Manual and had a look at the peripherals view in MCUXpresso but haven't yet seen anything that could indicate what fuses are blown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rory&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 20:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1719041#M26712</guid>
      <dc:creator>rnicolls</dc:creator>
      <dc:date>2023-09-07T20:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Fuses</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1719745#M26730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206323"&gt;@rnicolls&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can use the&amp;nbsp;OTP configuration button of the &lt;A href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-secure-provisioning-tool:MCUXPRESSO-SECURE-PROVISIONING" target="_self"&gt;Secure Provisioning Tool&lt;/A&gt; to read and write fuses on the RT1170. For more information about this tool refer to the &lt;A href="https://www.nxp.com/webapp/Download?colCode=MCUXSPTUG" target="_self"&gt;SPT User Guide&lt;/A&gt;. Section "5.2.3 OTP/PFR/IFR configuration" provides more details about this feature.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 21:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1719745#M26730</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2023-09-08T21:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Fuses</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1719822#M26733</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206323"&gt;@rnicolls&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I use the following code on 1176, maybe it can help you in some way:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#define FUSE_REGISTER_BT_FUSE_SEL 0x16 	// This is (0x960 - 0x800) &amp;gt;&amp;gt; 4. BT_FUSE_SEL bit is number 4 in this register (register address 0x960)
										// Page 2186 in the UM for 1176 shows this formula (OCOTP control and status register)
#define SET_BT_FUSE_SEL	0				// Set this to 1 to set the BT_FUSE_SEL

//----------------------------------------------------------------------------
// 
//----------------------------------------------------------------------------
void setFuses(void) {
    uint32_t version;
   /*
     * When the macro FSL_FEATURE_OCOTP_HAS_TIMING_CTRL is defined as 0, then the
     * OCOTP clock frequency is not used, pass in 0 directly.
     */
#if (defined(FSL_FEATURE_OCOTP_HAS_TIMING_CTRL) &amp;amp;&amp;amp; FSL_FEATURE_OCOTP_HAS_TIMING_CTRL)
    OCOTP_Init(OCOTP, EXAMPLE_OCOTP_FREQ_HZ);
#else
    OCOTP_Init(OCOTP, 0U);
#endif

    /* Get the OCOTP controller version. */
    version = OCOTP_GetVersion(OCOTP);

    status_t status   = kStatus_Success;
    uint32_t fuseData = 0U;

	// read original value from the register with BT-FUSE_SEL
    status = OCOTP_ReadFuseShadowRegisterExt(OCOTP, FUSE_REGISTER_BT_FUSE_SEL, &amp;amp;fuseData, 1);

    if (status != kStatus_Success) {
		messageDebug(DBG_ERR, __FILE_NAME__, __LINE__,"Error in OCOTP_ReadFuseShadowRegisterExt(), rc=", status );  
		return;
    }

	messageDebug(DBG_INFO, __FILE_NAME__, __LINE__,"OCOTP_ReadFuseShadowRegisterExt(), fusedata=0x%08X", fuseData);  

	
	#if defined(SET_BT_FUSE_SEL) &amp;amp;&amp;amp; SET_BT_FUSE_SEL
		// Program the original value plus bit 4 set (BT_FUSE_SEL)
		status = OCOTP_WriteFuseShadowRegister(OCOTP, FUSE_REGISTER_BT_FUSE_SEL, fuseData | (0x10));

		if (kStatus_Success == status) {
			status = OCOTP_ReadFuseShadowRegisterExt(OCOTP, FUSE_REGISTER_BT_FUSE_SEL, &amp;amp;fuseData, 1);
			if (status != kStatus_Success) {
				messageDebug(DBG_ERR, __FILE_NAME__, __LINE__,"Error in OCOTP_ReadFuseShadowRegisterExt(), rc=", status );  
				return;
			}

		} else {
			messageDebug(DBG_ERR, __FILE_NAME__, __LINE__,"Error in OCOTP_WriteFuseShadowRegister(), rc=", status );  
		}
	#endif
}&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 09 Sep 2023 11:24:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1719822#M26733</guid>
      <dc:creator>carstengroen</dc:creator>
      <dc:date>2023-09-09T11:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Fuses</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1724121#M26847</link>
      <description>&lt;P&gt;Thank you, this helped.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 19:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Checking-Fuses/m-p/1724121#M26847</guid>
      <dc:creator>rnicolls</dc:creator>
      <dc:date>2023-09-15T19:48:57Z</dc:date>
    </item>
  </channel>
</rss>

