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
WEACT STM32F411CE SUPPORT AND I2c
Re: WEACT STM32F411CE SUPPORT AND I2c
That boards is supported. Just select "Black Pill F411CE" from menu.
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.
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.
Re: WEACT STM32F411CE SUPPORT AND I2c
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
Re: WEACT STM32F411CE SUPPORT AND I2c
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
Re: WEACT STM32F411CE SUPPORT AND I2c
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)
https://github.com/WeActTC/MiniF4-STM32 ... Balint.png
So which is which?
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?
Re: WEACT STM32F411CE SUPPORT AND I2c
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
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
Re: WEACT STM32F411CE SUPPORT AND I2c
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.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 enter bootloader mode (with button dance), it will stay in until you reset or upload something (no matter is it with USB or Serial).