You're thinking of something like mmap() that you can use in Unix, right?
I've got two answers, from my admittedly limited but non-nil experience with STM32:
1: No. The chip itself doesn't have any native support for doing that. It's too complex and too much of a special feature.
2: Sort of, if you're willing to do a little bit of extra work. What the STM32 *does* support is DMA. You could pretty easily set up a buffer (in real memory), and a set of functions called something like flash_read(int sector, void* buf), and flash_write(int sector, void* buf). These would trigger an SPI read with DMA that would copy data to/from your sector.
Either way, you're not going to get mmap(), but you can get reasonably close by using some support functions that abstract away all the nitty gritty detail.