There is Flexbus example in KSDK2.0 package. You can refer to boards\twrk65f180m\driver_examples\flexbus. But this will depend on which exact device you connect with Flexbus. Is it external SRAM, bus interfaced LCD or CPLD/FPGA?
This is my opinion, as you know that the FlexBus is used to read/write memory or memory-mapped device, the FlexBus data pins logic can not keep forever, when the memory accessing is over, the data bus logic are unknown.
If you want to read/write IO, how about using GPIO pins, the K65 has a lot of GPIO pins, for example PortA, PortB, PortC, PortD...
Hope it can help you
Thank you so much for the reply.
Actually I forgot to mention Flex bus is interfaced with some temporary Buffer memory. I understand how to read/write through flex bus. I will clarify if any further issue arise.
Thank a lot for the help.