I'm trying to send some command data fron STM32F769NI-DISCO to an ADE9000 though SPI. But my program never send commands because a HardFault is triggererd when HAL_SPI_Transmit ... function is called .
Here is the function that causes trouble. What could be the problem, please ?