im working on powerpc 8358 and im facing difficulty in writing a code for testing memory devices
This is the ColdFire Forum. You're using a Power part. You should ask in the "Other Microprocessors" Forum.
<Edit> I see you've already crossposted there. You should have read this before doing that:
https://community.freescale.com/message/30227#30227
Provide more details about what you're doing and ask some specific questions. The only possible answer to "im facing difficulty" is "Yes, AND?" when I'm in a good mood, and something less kind otherwise.
Tom