Hi, ZhaiLing,
As you said that we have not the example code for FlexBus. The FlexBus configuration is only dependent on your hardware connection, for example, the port size, wait state, byte-lane shift, multiplexed or non-multiplexed mode...
Anyway, the flexbusConfig structure corresponds to the FlexBus register contents, pls refer to the Chapter 31
External Bus Interface (FlexBus) in RM of K64, especially register setting.
After the FlexBus register setting, you can use a pointer to access the external memory, which locates in the FlexBus memory space, pls refer to Chapter 4 Memory Map.
If you still have question, pls tell us the hardware connection so that we can determine the flexbus register setting.
BR
Xiangjun Rong