Hello,
after playing with my code for a couple of days now, on and off,
, I used PlatformIO to build a "stm32cube" project for the Nucleo-64 board with STM32F446RE I have.
I added the necessary extra code like SystemClock_Config() that STM32CubeMX generated and the SPI and DMA functions that I implemented for the STM32duino and that are using HAL and LL functions.
And damn, it works, sending data over LL_SPI_TransmitData8(), HAL_SPI_Transmit() and HAL_SPI_Transmit_DMA()
just works.
To finally come to a question, what is failing with STM32duino is the DMA interrupt.
HAL_SPI_Transmit_DMA() needs the associated IRQHandler to call HAL_DMA_IRQHandler().
So I am using this now:
void DMA2_Stream3_IRQHandler(void)
{
HAL_DMA_IRQHandler(&eve_dma_handle);
}
And this works just fine in the stm32cube" project.
But on the STM32duino side this IRQ handler never gets called.
What extra steps do I need to make this interrupt handler work on the STM32duino side?