I need to do SPI and I2C communications on the board. What hardware items I need to buy and where to put them on the board. Which would be a good slave (data to read from).
You're welcome.
But have you actually done what I said in that post?
* Have you studied the documentation for both boards - including the schematics ?
* Have you studied the documentation for the STM32 ?
* Have you familiarised yourself with how SPI works in general ?
"Q1: How can I make the above board to work with the STM board?"
The same way you'd go about interfacing any two things:
www.8052mcu.com/.../160143
Which, again, requires that you have done the things mentioned in the first reply.
"Q2: The ARM Cortex M4 has 3 SPI peripherals"
The ARM Cortex-M4 is just the CPU core - it does not have any peripherals at all.
The peripherals are what the chip manufacturer - ST, in this case - adds to make their particular product - the STM32, in this case.
"Which port/pins the SPI1 has been brought out on the STM board?"
That will be shown in documentation for the board - including the schematics (aka "circuit diagrams").
That's why I said:
"The first thing is to study the documentation for the board - including the schematics (aka 'circuit diagrams')"
This is clearly illustrated in the STM32F407IG datasheet: www.st.com/.../stm32f407ig.pdf
available from: www.st.com/.../stm32f407ig.html
The current version is Rev 8, dated 09-Sep-2016.
On page 19 of that document, in Figure 5, the ARM Cortex M4 is at top-left of the diagram - and you can see that all of the peripherals fall outside of that block.