How to connect peripherals in CoertexR5 processor? And also how many possible ways of connecting them?
It kind of depends what you mean by the question.
The Cortex-R5 is a processor that you would include as part of a larger chip-design (an SoC). The processor has a couple of different bus ports which the SoC designer would connect to SoC's memory system. The peripherals are part of the memory system. So from the processor you'd access them using loads and stores to the address of the peripheral.
Now the device that's on-chip could be something like a PCIe or USB controller. With the actual end peripheral being off-chip and potentially hot-pluggable. But the processor isn't directly aware of that. The processor is interacting with the thing in the memory system (the controller), it's up to whatever that controller is to describe how you access the things behind it.
Thank you Martin Weidmann