Hello,
Your understanding of how the refresh rate should be calculated is correct,
assuming that DRAM part should be fully refreshed within a specified Refresh
Window (usually 64 ms, but LPDDR2 has temperature dependence here, may
be 32 ms).
Configurations
(a) REF_SEL=32KHz with REFR=0x7 (8 Refreshes)
and
(b) REF_SEL=64KHz (both edges of 32KHz is involved) with REFR=0x3 (4 Refreshes)
are the same. NXP recommends 32KHz variant using.
“The way that parameter tREFI is determined (for LPDDR2) is to count up all the refreshes within
a specified Refresh Window (32 ms for T<85C), and then divide 32 ms by the number received to get
the average tREFI.”
Is Your DRAM - LPDDR2 ?
Please double check design using the following design checklist
https://community.nxp.com/docs/DOC-93819
Regards,
Yuri.