Attached Memory test can be used to test DDR (or any other memory type or memory mapped peripheral) for BF707 which is performed for all types of accesses (8/16/32 bits) for both core and DMA modes across various combination of clock frequencies on DDR2 and LPDDR. We would suggest you to Comment/uncomment the macros to select between DDR2/LPDDR in the "main.h".