SPI.end() hangs on maple mini
Posted: Wed Mar 13, 2024 7:53 am
Hi,
After using libmaple for several years, I decided to move my project to the stm32duino libraries. I have to use an NRF24 radio connected to SPI2 and have SPI1 disabled. I can't connect the radio module to SPI1 because I use SPI1 pins other purposes. So I need to deactivate SPI1. After calling SPI.end(), the program hangs.
I also tried removing the SPI declaration of the SPIclass from the SPI.c file, but this had no effect. SPI port 1 is still active.
My board is Maple Mini with SPI1 on pins 4, 5, 6, 7, STM ports PA7, PA6, PA5, PA4.
Any ideas on how to disable SPI1?
After using libmaple for several years, I decided to move my project to the stm32duino libraries. I have to use an NRF24 radio connected to SPI2 and have SPI1 disabled. I can't connect the radio module to SPI1 because I use SPI1 pins other purposes. So I need to deactivate SPI1. After calling SPI.end(), the program hangs.
I also tried removing the SPI declaration of the SPIclass from the SPI.c file, but this had no effect. SPI port 1 is still active.
My board is Maple Mini with SPI1 on pins 4, 5, 6, 7, STM ports PA7, PA6, PA5, PA4.
Any ideas on how to disable SPI1?