AnsweredAssumed Answered

Flex bus initialization in K60 for CS[0:5].

Question asked by Sudheer Adavala on Jul 8, 2013
Latest reply on Jul 11, 2013 by Sudheer Adavala

Hi,

I am working on K60 evalution board, in flex bus configuration am able to cofigure fb_cs0 with range from 0x6000_0000 to 0x6FFF_FFFF;

But in same way trying to configure for fb_cs1 to fb_cs5 range start from 0x7000_0000 to 0x7FFF_FFFF (fb_cs1) it's not configured with

followin configuration

 

  SIM_SCGC7 |= SIM_SCGC7_FLEXBUS_MASK;

  //Set Base address

  FB_CSAR1 = 0x70000000;

 

  FB_CSCR1  =   FB_CSCR_PS(2)      // 16-bit port

              | FB_CSCR_AA_MASK    // auto-acknowledge

              | FB_CSCR_ASET(0x1)  // assert chip select on second clock edge after address is asserted

              | FB_CSCR_WS(0x1)    // 1 wait state - may need a wait state depending on the bus speed

              ;

 

  FB_CSMR1  =   FB_CSMR_BAM(0x1FF)  //Set base address mask for 512K address space

              | FB_CSMR_V_MASK    //Enable cs signal

              ;

             

   //enable BE signals - note, not used in this example

  FB_CSPMCR = 0x12200000;

 

  //fb clock divider 3

  SIM_CLKDIV1 |= SIM_CLKDIV1_OUTDIV3(0x3);

 

  // Set the GPIO ports clocks

    SIM_SCGC5 = SIM_SCGC5_PORTA_MASK | SIM_SCGC5_PORTB_MASK | SIM_SCGC5_PORTC_MASK |

    SIM_SCGC5_PORTD_MASK | SIM_SCGC5_PORTE_MASK;

 

 

Tell me if any other configurations required.

 

Outcomes