WEACT STM32F411CE SUPPORT AND I2c

Post Reply
navanod
Posts: 12
Joined: Thu Jun 11, 2020 3:27 pm

WEACT STM32F411CE SUPPORT AND I2c

Post by navanod »

Coming from the blue pill and needing some more i2c I got some of the weact stm32f11 boards. Just wondering if there is any sensible method to get this compiling at all under the stm32duino?
Any tips from those who have tried or suggestions on board settings/ bootloaders to use?
https://github.com/WeActTC/MiniF4-STM32F4x1

So far I have seen the github issue here
https://github.com/stm32duino/Arduino_C ... issues/876
and some comments here
https://hardwareliberopinerolo.github.i ... black-pill

But sadly its a bit vague for my entry level

User avatar
Bakisha
Posts: 48
Joined: Fri Dec 20, 2019 6:50 pm
Answers: 3
Contact:

Re: WEACT STM32F411CE SUPPORT AND I2c

Post by Bakisha »

That boards is supported. Just select "Black Pill F411CE" from menu.
Clipboard02.png
Clipboard02.png (17.49 KiB) Viewed 221 times
But WeAct bootloader is not supported. Nor you need it to upload sketch. You can use ST-LINK, or with hardware bootloader, either via USB (DFU) or with serial dongle on PA9/PA10. For the last two, you'll only need to do "button dance" (press BOOT0, press reset, release reset, release BOOT0).

WeAct bootloader will be deleted and replaced with you sketch. If you enabled serial (CDC) in menu, you'll get serial port over USB connection.

navanod
Posts: 12
Joined: Thu Jun 11, 2020 3:27 pm

Re: WEACT STM32F411CE SUPPORT AND I2c

Post by navanod »

Using for example a cp2102 or other uart adapters? Or via the USB c port? I will try now the Uart adapter. I also ha ve a stlink V3 can not find any documentation to use it on this board

navanod
Posts: 12
Joined: Thu Jun 11, 2020 3:27 pm

Re: WEACT STM32F411CE SUPPORT AND I2c

Post by navanod »

ok if I use STMcubeprogrammer (Serial) then I am able to upload a sketch..DFu didnt work for me but I think I am missing something important

navanod
Posts: 12
Joined: Thu Jun 11, 2020 3:27 pm

Re: WEACT STM32F411CE SUPPORT AND I2c

Post by navanod »

and now for the I2c,,The front page from st has an image for 5 x i2c devices, I need 3 separate devices (same i2c address)
en.bd_stm32f411xe_512k.jpg
en.bd_stm32f411xe_512k.jpg (51.05 KiB) Viewed 214 times
from the board layout of the weact I can only make out some vauge i2c pins..
https://github.com/WeActTC/MiniF4-STM32 ... Balint.png

So which is which?

GonzoG
Posts: 18
Joined: Wed Jan 15, 2020 11:30 am

Re: WEACT STM32F411CE SUPPORT AND I2c

Post by GonzoG »

There are only 3 I2C.
By default only one is available (I2C 1). To access more you'll need to declare TwoWire objects ( eg. TwoWire Wire2(SDA_pin,SCL_pin); )
STM32duino Wiki: https://github.com/stm32duino/wiki/wiki/API#i2C
Unfortunately some Arduino libraries are hard coded to "Wire" name and won't work with other unless you edit them.

Pins are:
(SDA, SCL)
1: PB7, PB6 (optional: PB9, PB8)
2: PB3, PB10
3: PB4, PA8

User avatar
Bakisha
Posts: 48
Joined: Fri Dec 20, 2019 6:50 pm
Answers: 3
Contact:

Re: WEACT STM32F411CE SUPPORT AND I2c

Post by Bakisha »

navanod wrote:
Thu Jul 30, 2020 8:46 pm
ok if I use STMcubeprogrammer (Serial) then I am able to upload a sketch..DFu didnt work for me but I think I am missing something important
When you select DFU as upload method, then you need USB(C) cable connected to board, when you select Serial as upload method, you'll need Serial adapted (any kind that can support 115200 bps speed) connected to PA9/PA10.

When you enter bootloader mode (with button dance), it will stay in until you reset or upload something (no matter is it with USB or Serial).

Post Reply

Return to “STM32F4 based boards”