AnsweredAssumed Answered

Init of FlexBus pins in SDRAM mode

Question asked by Peter Ruesch on Aug 7, 2015
Latest reply on Aug 10, 2015 by Peter Ruesch

Hi,

 

 

I'm trying to get the external SDRAM on the TWR-K65 working using KDS and PE.

 

After comparing various register settings in the initialization phase with AN5095SW I realized that I need to change the FB_CSPMCR value to get the SDRAM working.

The generated pin init code for the SDRAM contains a section for setting the FB_CSPMCR but unfortunately the values listed there are leading to a non functional SDRAM.

 

I can't find a entry in the PE SDRAM component to edit these values.

 

All I can do is add the FB component and change it there, but this is not what i want.

 

So my question: How can i control the FB muxing in the SDRAM component in Processor Expert to generate the parameters like described in the code sample below ?

The function in question is init_sdram_pins().

 

void init_sdram_pins(uint32_t instance)
{
  /* Affects PORTD_PCR4 register */
  PORT_HAL_SetMuxMode(PORTD,4UL,kPortMuxAlt5);
...
  FLEXBUS_HAL_SetMultiplexControlGroup2(FB, kFlexbusMultiplexGroup2_FB_TSIZ0);      
  FLEXBUS_HAL_SetMultiplexControlGroup3(FB, kFlexbusMultiplexGroup3_FB_TSIZ1);      
  FLEXBUS_HAL_SetMultiplexControlGroup4(FB, kFlexbusMultiplexGroup4_FB_CS2);      
  FLEXBUS_HAL_SetMultiplexControlGroup5(FB, kFlexbusMultiplexGroup5_FB_CS3);
...
}

 

must be changed to

 

void init_sdram_pins(uint32_t instance)
{
  /* Affects PORTD_PCR4 register */
  PORT_HAL_SetMuxMode(PORTD,4UL,kPortMuxAlt5);
...
  FLEXBUS_HAL_SetMultiplexControlGroup2(FB, kFlexbusMultiplexGroup2_FB_BE_31_24);
  FLEXBUS_HAL_SetMultiplexControlGroup3(FB, kFlexbusMultiplexGroup3_FB_BE_23_16);
  FLEXBUS_HAL_SetMultiplexControlGroup4(FB, kFlexbusMultiplexGroup4_FB_BE_15_8);
  FLEXBUS_HAL_SetMultiplexControlGroup5(FB, kFlexbusMultiplexGroup5_FB_BE_7_0);
...
}

Outcomes