Is DMA2 not supported on the STM32F103Cx?

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
victor_pv
Posts: 1747
Joined: Mon Apr 27, 2015 12:12 pm

Re: Is DMA2 not supported on the STM32F103Cx?

Post by victor_pv » Fri Sep 15, 2017 11:03 pm

rana wrote:
Fri Sep 15, 2017 9:10 pm
i have also in my project a OLED SSD1306
SDA PB7
SCL PB6
You can check if i2c1 can be remapped to other pins, and otherwise try using I2C2 rather than I2C1. You would would have to change the declaration of the WIRE object to use the second port instead of the first one, it's somewhere at the end of the wire library cpp files, either in wire.cpp or wirebase.cpp. I remember cause I was using that library the other day.

User avatar
rana
Posts: 11
Joined: Wed Sep 06, 2017 4:55 pm
Location: India-UK

Re: Is DMA2 not supported on the STM32F103Cx?

Post by rana » Sat Sep 16, 2017 10:56 am

oh thanks.
You mean at the end of the Wire.cpp there is this line HardWire Wire(1, I2C_FAST_MODE);;
i cant change the oleds pins it have to stay there
OLED SSD1306
SDA PB7
SCL PB6

What i dont understand is why is i2c1 affect the PB5

zmemw16
Posts: 1489
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Is DMA2 not supported on the STM32F103Cx?

Post by zmemw16 » Sat Sep 16, 2017 3:46 pm

look up pb5 in datasheet table 4, p29 of 98
STM32F100xC STM32F100xD STM32F100xE 'High-density value line, advanced ARM-based 32-bit MCU with 256 to 512 KB Flash, 16 timers, ADC, DAC & 11 comm interfaces
Doc ID 15081 Rev 7
default is I2C1_SMBA
google 'I2C SMBA'
early result is
Differences between I2C and SMBus
srp

Post Reply