Best practice for K8x QSPI Dual-Quad Address Ranges

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Best practice for K8x QSPI Dual-Quad Address Ranges

1,080 次查看
deniscollis
Contributor V

Though I'd share...

The K8x QSPI peripheral can accept one or two QSPI flash devices, or a dual-die device (which is really only two identical flash dies and one chip).  Each can have a maximum size of 64MB.

In some NXP K8x QSPI peripheral examples the second die address range starts where the first ends. So for example:

2x 32MB dies would have:
Bank-A: 0x68000000-0x69FFFFFF 
Bank-B: 0x6A000000-0x6BFFFFFF

and 2x 16MB dies would have:
Bank-A: 0x68000000-0x68FFFFFF 
Bank-B: 0x69000000-0x69FFFFFF

This arrangement is no longer ideal with the latest Segger Flasher-ARM/J-Flash.

In earlier J-Flash versions (many moons ago) I recall the ability to change these addresses, but this is no longer allowed. Instead, the full 64MB is always allocated for each bank, and it cannot be changed.

deniscollis_0-1660937994824.png

Bank-A now always starts at 0x68000000 and Bank-B always starts at 0x6C000000 and it then follows that in the examples above:

2x 32MB dies should have:

Bank-A: 0x68000000-0x69FFFFFF 
Bank-B: 0x6C000000-0x6DFFFFFF

and 2x 16MB dies should have:

Bank-A: 0x68000000-0x68FFFFFF 
Bank-B: 0x6C000000-0x6CFFFFFF

...which seems to be the best-practice is you want successful production programming of your products.

Cheers!
Denis

标签 (1)
标记 (2)
0 回复数