<?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: Flexbus on K66F</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691256#M42585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned the memory address [0x6200_0000~~0x63FF_0000] is for IO part. Is IO part a FPGA device? Is that device also using the FB_CS0 as chip select? Could you guide which device is IO part at your schematics?&lt;/P&gt;&lt;P&gt;I think the root cause at Flexbus module registers setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jun 2017 00:17:29 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2017-06-21T00:17:29Z</dc:date>
    <item>
      <title>Flexbus on K66F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691252#M42581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using K66F to access external flash(32M) and SDRAM(32M) in no-multiplex mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Here are pin mux:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &lt;STRONG&gt;BOARD_InitPins&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CLOCK_EnableClock(&lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kCLOCK_PortA&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Port A Clock Gate Control: Clock enabled */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CLOCK_EnableClock(&lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kCLOCK_PortB&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Port B Clock Gate Control: Clock enabled */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CLOCK_EnableClock(&lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kCLOCK_PortC&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Port C Clock Gate Control: Clock enabled */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CLOCK_EnableClock(&lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kCLOCK_PortD&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Port D Clock Gate Control: Clock enabled */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CLOCK_EnableClock(&lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kCLOCK_PortE&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Port E Clock Gate Control: Clock enabled */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-----*****Just doing re-arrangement from pin_mux.c that is generated by pin tool*****-----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****UART0 used as DEBUG interface on Demo Board*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;// PORT_SetPinMux(PORTB, PIN16_IDX, kPORT_MuxAlt3); /* PORTB16 (pin E10) is configured as UART0_RX(Demo Board) */&lt;/P&gt;&lt;P&gt;// PORT_SetPinMux(PORTB, PIN17_IDX, kPORT_MuxAlt3); /* PORTB17 (pin E9) is configured as UART0_TX(Demo Board) */&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//----Configured on iNetVu 7710 Version 5.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****UART1 used as DEBUG interface*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTE, PIN0_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt3&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTE0 (pin 1) is configured as UART1_TX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTE, PIN1_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt3&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTE1 (pin 2) is configured as UART1_RX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****Configure UART3*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTE, PIN4_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt3&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTE4 (pin 7) is configured as UART3_TX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTE, PIN5_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt3&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTE5 (pin 8) is configured as UART3_RX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****Configure LPUART0*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTE, PIN8_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTE8 (pin 11) is configured as LPUART0_TX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTE, PIN9_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTE9 (pin 12) is configured as LPUART0_RX */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****ENET Configuration*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN12_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt4&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA12 (pin 64) is configured as RMII0_RXD1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN13_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt4&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA13 (pin 65) is configured as RMII0_RXD0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN14_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt4&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA14 (pin 66) is configured as RMII0_CRS_DV */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN15_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt4&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA15 (pin 67) is configured as RMII0_TXEN */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN16_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt4&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA16 (pin 68) is configured as RMII0_TXD0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN17_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt4&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA17 (pin 69) is configured as RMII0_TXD1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN5_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt4&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA5 (pin 55) is configured as RMII0_RXER */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// On Demo Board&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;// PORT_SetPinMux(PORTB, PIN0_IDX, kPORT_MuxAlt4); /* PORTB0 (pin H10) is configured as RMII0_MDIO */&lt;/P&gt;&lt;P&gt;// PORTB-&amp;gt;PCR[0] = ((PORTB-&amp;gt;PCR[0] &amp;amp; (~(PORT_PCR_ODE_MASK | PORT_PCR_ISF_MASK))) /* Mask bits to zero which are setting */&lt;/P&gt;&lt;P&gt;// | PORT_PCR_ODE(PCR_ODE_ENABLED) /* Open Drain Enable: Open drain output is enabled on the corresponding pin, if the pin is configured as a digital output. */&lt;/P&gt;&lt;P&gt;// );&lt;/P&gt;&lt;P&gt;// PORT_SetPinMux(PORTB, PIN1_IDX, kPORT_MuxAlt4); /* PORTB1 (pin H9) is configured as RMII0_MDC */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//----Configured on iNetVu 7710 Version 5.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN7_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA7 (pin 59) is configured as RMII0_MDIO */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORTA-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;PCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;[7] = ((PORTB-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;PCR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;[7] &amp;amp; (~(PORT_PCR_ODE_MASK | PORT_PCR_ISF_MASK))) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Mask bits to zero which are setting(ISF, ODE) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; | PORT_PCR_ODE(PCR_ODE_ENABLED) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Open Drain Enable: Open drain output is enabled on the corresponding pin, if the pin is configured as a digital output. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****Initialize the SDRAMC pins*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN6_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA6 (pin 58) is configured as CLKOUT */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Configured for RMII Network on Demo Board&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN0_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB0 (pin 81) is configured as SDRAM_CAS_b---Configured for RMII Network on Demo Board */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN1_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB1 (pin 82) is configured as SDRAM_RAS_b---Configured for RMII Network on Demo Board */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN2_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB2 (pin 83) is configured as SDRAM_WE */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN3_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB3 (pin 84) is configured as SDRAM_CS0_b */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN4_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB4 (pin 85) is configured as SDRAM_CS1_b */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Configure SDRAM Data Pins&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN20_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB20 (pin 99) is configured as FB_AD31, SDRAM_D31 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN21_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB21 (pin 100) is configured as FB_AD30, SDRAM_D30 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN22_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB22 (pin 101) is configured as FB_AD29, SDRAM_D29 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN23_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB23 (pin 102) is configured as FB_AD28, SDRAM_D28 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN12_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC12 (pin 117) is configured as FB_AD27, SDRAM_D27 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN13_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC13 (pin 118) is configured as FB_AD26, SDRAM_D26 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN14_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC14 (pin 119) is configured as FB_AD25, SDRAM_D25 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN15_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC15 (pin 120) is configured as FB_AD24, SDRAM_D24 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN6_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB6 (pin 87) is configured as FB_AD23, SDRAM_D23 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN7_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB7 (pin 88) is configured as FB_AD22, SDRAM_D22 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN8_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB8 (pin 89) is configured as FB_AD21, SDRAM_D21 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN9_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB9 (pin 90) is configured as FB_AD20, SDRAM_D20 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN10_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB10 (pin 91) is configured as FB_AD19, SDRAM_D19 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN11_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB11 (pin 92) is configured as FB_AD18, SDRAM_D18 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****UART0 used as DEBUG interface on Demo Board*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN16_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB16 (pin 95) is configured as FB_AD17, SDRAM_D17---Used as DEBUG interface on Demo Board */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN17_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB17 (pin 96) is configured as FB_AD16, SDRAM_D16---Used as DEBUG interface on Demo Board */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Configure SDRAM Address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN18_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB18 (pin 97) is configured as SDRAM_A23, FB_AD15 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN0_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC0 (pin 103) is configured as SDRAM_A22, FB_AD14 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN1_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC1 (pin 104) is configured as SDRAM_A21, FB_AD13 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN2_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC2 (pin 105) is configured as SDRAM_A20, FB_AD12 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN4_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC4 (pin 109) is configured as SDRAM_A19, FB_AD11 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN5_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC5 (pin 110) is configured as SDRAM_A18, FB_AD10 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN6_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC6 (pin 111) is configured as SDRAM_A17, FB_AD9 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN7_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC7 (pin 112) is configured as SDRAM_A16, FB_AD8 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN8_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC8 (pin 113) is configured as SDRAM_A15, FB_AD7 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN9_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC9 (pin 114) is configured as SDRAM_A14, FB_AD6 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN10_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC10 (pin 115) is configured as SDRAM_A13, FB_AD5 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN2_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD2 (pin 129) is configured as SDRAM_A12, FB_AD4 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN3_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD3 (pin 130) is configured as SDRAM_A11, FB_AD3 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN4_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD4 (pin 131) is configured as SDRAM_A10, FB_AD2 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN5_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD5 (pin 132) is configured as SDRAM_A9, FB_AD1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Configure SDRAM Control signal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN7_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD7 (pin 136) is configured as SDRAM_CKE */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN17_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC17 (pin 124) is configured as SDRAM_DQM3 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN16_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC16 (pin 123) is configured as SDRAM_DQM2 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN18_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC18 (pin 125) is configured as SDRAM_DQM1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN19_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC19 (pin 126) is configured as SDRAM_DQM0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****Configure &lt;SPAN style="text-decoration: underline;"&gt;Flexbus&lt;/SPAN&gt; high address*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN28_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA28 (pin 79) is configured as FB_A25 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTA, PIN29_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTA29 (pin 80) is configured as FB_A24 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN15_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD15 (pin 144) is configured as FB_A23 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN14_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD14 (pin 143) is configured as FB_A22 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN13_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD13 (pin 142) is configured as FB_A21 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN12_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD12 (pin 141) is configured as FB_A20 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN11_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD11 (pin 140) is configured as FB_A19 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN10_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD10 (pin 139) is configured as FB_A18 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN9_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD9 (pin 138) is configured as FB_A17 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN8_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt6&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD8 (pin 137) is configured as FB_A16 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Configure &lt;SPAN style="text-decoration: underline;"&gt;Flexbus&lt;/SPAN&gt; RW, OE, chip select and etc Control signal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTB, PIN19_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTB19 (pin 98) is configured as FB_OE_b */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTC, PIN11_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTC11 (pin 116) is configured as FB_RW_b */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN0_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD0 (pin 127) is configured as FB_CS1_b */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PORT_SetPinMux(PORTD, PIN1_IDX, &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kPORT_MuxAlt5&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* PORTD1 (pin 128) is configured as FB_CS0_b */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-----The initialization done by tool generation&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Select RMII clock &lt;SPAN style="text-decoration: underline;"&gt;src&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;SOPT2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = ((SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;SOPT2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &amp;amp; (~(SIM_SOPT2_RMIISRC_MASK))) | SIM_SOPT2_RMIISRC(SOPT2_RMIISRC_ENET)); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Bit19==1---RMII clock source select: External bypass clock (ENET_1588_CLKIN).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;SOPT5&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = ((SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;SOPT5&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; (~(SIM_SOPT5_UART1TXSRC_MASK | SIM_SOPT5_LPUART0TXSRC_MASK))) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Mask bits to zero which are setting */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; | SIM_SOPT5_UART1TXSRC(SOPT5_UART1TXSRC_UART_TX) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* UART 1 transmit data source select: UART1_TX pin */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; | SIM_SOPT5_LPUART0TXSRC(SOPT5_LPUART0TXSRC_LPUART_TX) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* LPUART0 transmit data source select: LPUART0_TX pin */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;USBPHYCTL&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = ((SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;USBPHYCTL&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; (~(SIM_USBPHYCTL_USBVREGSEL_MASK))) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Mask bits to zero which are setting */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; | SIM_USBPHYCTL_USBVREGSEL(USBPHYCTL_USBVREGSEL_VREG_IN0) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Selects the default input voltage source to the USB Regulator in case both VREG_IN0 and VREG_IN1 are powered. If only one of the regulator inputs is powered, it will automatically be selected by the regulator's power &lt;SPAN style="text-decoration: underline;"&gt;mux&lt;/SPAN&gt; circuitry.: VREG_IN0 will be selected if both regulator inputs are powered */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Based on above pin mux. It works fine with SDRAM interface, but I can't access external flash on flexbus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the initialization for Flexbus.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;int32_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *p_mram = (&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;int32_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)MRAM_START_ADDRESS; // 0x60000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//-----*****Copied from &lt;SPAN style="text-decoration: underline;"&gt;Httpsrv&lt;/SPAN&gt; demo*****-----&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;struct&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;netif&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; fsl_netif0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;ip4_addr_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; fsl_netif0_ipaddr, fsl_netif0_netmask, fsl_netif0_gw;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;MPU_Type&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *base = MPU; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****Copied from &lt;SPAN style="text-decoration: underline;"&gt;Httpsrv&lt;/SPAN&gt; demo*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOARD_InitPins();&lt;/P&gt;&lt;P&gt;BOARD_BootClockRUN();&lt;/P&gt;&lt;P&gt;BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-----*****Copied from &lt;SPAN style="text-decoration: underline;"&gt;Httpsrv&lt;/SPAN&gt; demo*****-----&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Disable MPU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; base-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;CESR&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &amp;amp;= ~MPU_CESR_VLD_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Set clock out to &lt;SPAN style="text-decoration: underline;"&gt;flexbus&lt;/SPAN&gt; CLKOUT. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; CLOCK_SetClkOutClock(0); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Bit7:5---Select clock on CLKOUT pin(000---&lt;SPAN style="text-decoration: underline;"&gt;Flexbus&lt;/SPAN&gt; CLOCK)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****SDRAM demo---Sets the &lt;SPAN style="text-decoration: underline;"&gt;Flexbus&lt;/SPAN&gt; security level*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; soptReg = SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;SOPT2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &amp;amp; ~SIM_SOPT2_FBSL_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;SOPT2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = soptReg | SIM_SOPT2_FBSL(3); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//Bit9:8==11---Off-chip instruction accesses and data accesses are allowed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;//-----Copied from &lt;SPAN style="text-decoration: underline;"&gt;Flexbus&lt;/SPAN&gt; driver demo-----&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;* Initialize configurations for MRAM.&lt;/P&gt;&lt;P&gt;* Refer application note: AN4393.&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Get default &lt;SPAN style="text-decoration: underline;"&gt;config&lt;/SPAN&gt; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.writeProtect = 0;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.burstWrite = 0;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.burstRead = 0;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.byteEnableMode = 0;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.autoAcknowledge = true;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.extendTransferAddress = 0;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.secondaryWaitStates = 0;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.byteLaneShift = kFLEXBUS_NotShifted;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.writeAddressHold = kFLEXBUS_Hold1Cycle;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.readAddressHold = kFLEXBUS_Hold1Or0Cycles;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.addressSetup = kFLEXBUS_FirstRisingEdge;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.portSize = kFLEXBUS_1Byte;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.group1MultiplexControl = kFLEXBUS_MultiplexGroup1_FB_ALE;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.group2MultiplexControl = kFLEXBUS_MultiplexGroup2_FB_CS4;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.group3MultiplexControl = kFLEXBUS_MultiplexGroup3_FB_CS5;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.group4MultiplexControl = kFLEXBUS_MultiplexGroup4_FB_TBST;&lt;/P&gt;&lt;P&gt;* flexbusUserConfig.group5MultiplexControl = kFLEXBUS_MultiplexGroup5_FB_TA;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;FLEXBUS_GetDefaultConfig(&amp;amp;flexbusUserConfig);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Configure some parameters when using MRAM */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;waitStates&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 6U; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* Wait 6 states for External flash*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// 0x6000_0000~~0x61FF_0000 for 32M flash, 0x6200_0000~~0x63FF_0000 for IO input/Output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;chipBaseAddressMask&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 0x03FFU; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* 32 &lt;SPAN style="text-decoration: underline;"&gt;Mbytes&lt;/SPAN&gt; memory size==0x200U * 64K + A25 as GPIO*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// Done in FLEXBUS_GetDefaultConfig(&amp;amp;flexbusUserConfig);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;portSize&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kFLEXBUS_2Bytes&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* 2 bytes port size(16-bit) of transfer */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;group1MultiplexControl&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kFLEXBUS_MultiplexGroup1_FB_CS1&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// kFLEXBUS_MultiplexGroup1_FB_ALE; /* FB_ALE */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;group2MultiplexControl&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kFLEXBUS_MultiplexGroup2_FB_BE_31_24&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//kFLEXBUS_MultiplexGroup2_FB_CS4; /* FB_CS4 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;group3MultiplexControl&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kFLEXBUS_MultiplexGroup3_FB_BE_23_16&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//kFLEXBUS_MultiplexGroup3_FB_CS5; /* FB_CS5 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;group4MultiplexControl&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kFLEXBUS_MultiplexGroup4_FB_BE_15_8&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//kFLEXBUS_MultiplexGroup4_FB_TBST; /* FB_TBST */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;group5MultiplexControl&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = &lt;/SPAN&gt;&lt;EM style=": ; color: #0000c0; font-size: small;"&gt;kFLEXBUS_MultiplexGroup5_FB_BE_7_0&lt;/EM&gt;&lt;SPAN style="font-size: small;"&gt;; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//kFLEXBUS_MultiplexGroup5_FB_TA; /* FB_TA */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;PRINTF(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"\r\nInitialize FLEXBUS.\r\n"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//-----*****Initialize and configure FLEXBUS module*****-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; FLEXBUS_Init(FB, &amp;amp;flexbusUserConfig); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// FB_BASE==0x4000_C000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-----*****FlexBus Testing!!!*****-----&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; PRINTF(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"\r\nStart write/read MRAM.\r\n"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;PRINTF(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"\r\n IO_00=0x%x_0x%x_0x%x_0x%x_0x%x\r\n"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;, p_mram, *(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)(p_mram + 0x02000000), *(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)(p_mram + 0x00010004), *(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)(p_mram + 0x00010008), *(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)(p_mram + 0x0001000C));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;3. I can't access the address above 0x6200_0000(above 16M). Why?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Christie&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 21:08:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691252#M42581</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-06-19T21:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Flexbus on K66F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691253#M42582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked below code with incorrect info:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// 0x6000_0000~~0x61FF_0000 for 32M flash, 0x6200_0000~~0x63FF_0000 for IO input/Output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;flexbusUserConfig.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;chipBaseAddressMask&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = 0x03FFU; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;/* 32 &lt;SPAN style="text-decoration: underline;"&gt;Mbytes&lt;/SPAN&gt; memory size==0x200U * 64K + A25 as GPIO*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the MRAM size is 32KB, the [BAM] of&amp;nbsp; Chip Select Mask Register (FB_CSMRn) is 0x1FF.&lt;/P&gt;&lt;P&gt;Another issue is the MRAM's chip select, I could find the K66's PTD1 lable is #CS0, while I checked M29W256GH's CS# connects with #CE. For you provide the pdf version schematics couldn't do a search, if that chip select signal is connected?&lt;/P&gt;&lt;P&gt;Thank you for the attention.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&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>Tue, 20 Jun 2017 04:36:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691253#M42582</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-06-20T04:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Flexbus on K66F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691254#M42583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 32M external flash(M29W256GH). The address is 0x6000_0000~~0x61FF_FFFF. Then I am trying to use next 32M for IO part. The address id 0x6200_0000~~0x63FF_0000. So, I need to set MASK=0x03FF, right?&lt;/P&gt;&lt;P&gt;I am using #CS0 or A25---&amp;gt;#CE for flash memory. And #CS0 or #A25 to generate GPIO selection.&lt;/P&gt;&lt;P&gt;For now, I can't access the address 0x6200_000~~0x63FF_0000 when I do the above setting.&lt;/P&gt;&lt;P&gt;Could you tell me how to access the above address and how to set BA and MASK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 11:56:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691254#M42583</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-06-20T11:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flexbus on K66F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691255#M42584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the demo code and didn't set flexbus security:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; soptReg = SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;SOPT2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; &amp;amp; ~SIM_SOPT2_FBSL_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; SIM-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: small;"&gt;SOPT2&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; = soptReg | SIM_SOPT2_FBSL(3); &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//Bit9:8==11---Off-chip instruction accesses and data accesses are allowed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is it OK if not set FBSL to access flexbus?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the above code and the same result...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 13:10:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691255#M42584</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-06-20T13:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Flexbus on K66F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691256#M42585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned the memory address [0x6200_0000~~0x63FF_0000] is for IO part. Is IO part a FPGA device? Is that device also using the FB_CS0 as chip select? Could you guide which device is IO part at your schematics?&lt;/P&gt;&lt;P&gt;I think the root cause at Flexbus module registers setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 00:17:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691256#M42585</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-06-21T00:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Flexbus on K66F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691257#M42586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hui,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I am using CSN1==0x6200_0004 to control U7 and U11. Now it works fine. I can control 16 bit output by using the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;*(&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: small;"&gt;volatile&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)K66F_IO_CSN1 = 0xFFEF; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;// D20---Beep&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I am using CSN2==0x6200_0008 to read U4 and U5 by using following:&lt;/P&gt;&lt;P&gt;key_pad = *(volatile uint16_t *)K66F_IO_CSN2;&lt;/P&gt;&lt;P&gt;I cab only read low 8-bit, not high 8-bit data, why?&lt;/P&gt;&lt;P&gt;3) When I am trying to read flash (0x6000_0000), I am always get low 8-bit(0xff), not high 8-bit.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *p_flash = (&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)M29W256_FLASH_ADDRESS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;PRINTF(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-size: small;"&gt;"\r\n IO_00=0x%x_0x%x_0x%x_0x%x_0x%x\r\n"&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;, p_flash, *(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)(p_flash + 1), *(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)(p_flash + 2), *(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)(p_flash + 3), *(&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)(p_flash + 3));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Could you tell me where I am wrong to read?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Christie&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691257#M42586</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-06-26T13:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flexbus on K66F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691258#M42587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About the question 3, your code just read 1 byte:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *p_flash = (&lt;/SPAN&gt;&lt;SPAN style="color: #005032; font-size: small;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; *)M29W256_FLASH_ADDRESS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please using uint16_t instead of uint8_t of previous code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About question 2, the U4 and U5 device's CLK signal connects with CLKOUT, while U7 &amp;amp; U11 device's CLK signal connects with CSN1. If the circuit design could affect the result?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&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>Tue, 27 Jun 2017 02:38:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flexbus-on-K66F/m-p/691258#M42587</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-06-27T02:38:32Z</dc:date>
    </item>
  </channel>
</rss>

