Connecting 2 NUCLEO32f411RE with SPI
Tried adding this line:
hspi2.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_32;
in the SPI initialization routine.
The slave gets stuck in startup_stm32f411xe.se routine when an ASCII character is sent from the master. It enters there from within the SPI-interrupt routine, that must mean that it is recognized as an SPI-interrupt, but still not correct?
/**
* @brief This is the code that gets called when the processor receives an
* unexpected interrupt. This simply enters an infinite loop, preserving
* the system state for examination by a debugger.
* @param None
* @retval None
- /
.section .text.Default_Handler,"ax",%progbits
Default_Handler:
Infinite_Loop:
b Infinite_Loop