Hello,
I'm in need of the following peripherals, UART1, UART2, UART3, SPI(1 or 2), and I2C(1 or 2), but STM32F103 shares many DMA channels with these peripherals.
The UARTs are generating DMX with strict and precise timings, so I'd guess that it would be best to keep the DMA with the UARTs and use I2C (EEPROM) and SPI (ENC28J60) without DMA, but how would I go on about disabling DMA in SPI and I2C on ChibiOS ?
Best regards.
STM32F103C8T6 (Blue Pill) Multiple Peripheral and DMA
Moderators: RoccoMarco, barthess
-
- Posts: 27
- Joined: Sat Mar 28, 2015 2:32 am
Re: STM32F103C8T6 (Blue Pill) Multiple Peripheral and DMA
I don't think that all drivers have an alternative to "use DMA" implemented. On SPI I think there is a "for small exchanges don't use DMA" variant of the API. If you cheat and use it for all transfers, that might work.
If you're not making hundreds you might be better off with a slightly bigger CPU... (i.e. F405)
If you're not making hundreds you might be better off with a slightly bigger CPU... (i.e. F405)
Who is online
Users browsing this forum: No registered users and 22 guests