Re: STM32C011 (WeAct) - first steps
Posted: Fri May 17, 2024 10:41 am
Do you read my posting???trimarco232 wrote: Fri May 17, 2024 10:03 am lots of answers here : https://github.com/stm32duino/Arduino_C ... 2/wiki/API
Everything relating to using STM32 boards with the Arduino IDE and alternatives
https://www.stm32duino.com/
Do you read my posting???trimarco232 wrote: Fri May 17, 2024 10:03 am lots of answers here : https://github.com/stm32duino/Arduino_C ... 2/wiki/API
Code: Select all
Wire.setSDA(PA5);
Wire.setSCL(PA4);
Code: Select all
digitalRead(PA15);
digitalRead(15);
digitalRead(D15);
Do you have Pullup on each I2C line ?STM32ardui wrote: Fri May 17, 2024 8:19 am I tried it on PB6/PB7, but the I2scanner.ino tells me, there is not I²c-device.
I took out a STM32F411CE board to compare.fpiSTM wrote: Fri May 17, 2024 12:18 pm FinallyDo you have Pullup on each I2C line ?STM32ardui wrote: Fri May 17, 2024 8:19 am I tried it on PB6/PB7, but the I2scanner.ino tells me, there is not I²c-device.
So what is the meaning of those lists in PeripheralPins.c?fpiSTM wrote: Fri May 17, 2024 12:18 pm There is an issue in your setup as you used:But they are not I2C pins based on the PinMap_I2C_SDA array you provide.Code: Select all
Wire.setSDA(PA5); Wire.setSCL(PA4);
The tiny STM32C011F6P6 comes in a TSOP-20 package.fpiSTM wrote: Fri May 17, 2024 12:18 pm About D14/D15 it exists in the Arduino STM32 core.
For example if PA15 is defined as 15 then D15 is also PA15.
So using:do the same.Code: Select all
digitalRead(PA15); digitalRead(15); digitalRead(D15);
Code: Select all
HardwareSerial Serial2(PA3, PA2); // RX, TX
@fpiSTM: I'm still interested to learn, how to connect several interfaces at a new board, when there is no pinout graphic in internet and how to interpret files like PeripheralPins.c, also if it's possible to remap with ArduinoIDE.fpiSTM wrote: Fri May 17, 2024 12:18 pm There is an issue in your setup as you used:But they are not I2C pins based on the PinMap_I2C_SDA array you provide.Code: Select all
Wire.setSDA(PA5); Wire.setSCL(PA4);
The "PYn_R" pin is remap pin that's all but when you remap some other "PYn" pins will not be available.
The problem is not ArduinoIDE.trimarco232 wrote: Thu May 16, 2024 9:36 pm - DAPLink is for MBed , and will work for other IDEs , but for Arduino , I really fear it won't work , so far
I heard about it. It's a CLI-program right?ag123 wrote: Sat May 25, 2024 3:07 pm for DAPlink, you may need to explore things like openocd
https://openocd.org/
I wonder how I was able to run test sketches with SD-card using SdFAT on an Arduino UNO with 32 kB Flash and 2 kB RAM ...ag123 wrote: Sat May 25, 2024 3:07 pm for the small chips, e.g. STM32C011, I've got instead a bunch of STM32G030
viewtopic.php?t=1848
what I normally do is I goto Sketch > export compiled binary, then the bin file would be left in your project folder.STM32ardui wrote: Sat May 25, 2024 4:37 pmI heard about it. It's a CLI-program right?ag123 wrote: Sat May 25, 2024 3:07 pm for DAPlink, you may need to explore things like openocd
https://openocd.org/
Can ArduinoIDE call it instead of STM32CubeProgrammer CLI?
WeActStudio tells me "You can use another ST link to brush the daplink into ST link". I only find in internet how to modify a STLink into a DAPLink not vice versa ...
Code: Select all
dfu-util -a 0 -s 0x8000000 -RD sketch.bin
a good thing about buying ready made boards is that many components are prebuilt on board e.g. crystals, leds, buttons, header pins etc.STM32ardui wrote: Sat May 25, 2024 4:37 pmI wonder how I was able to run test sketches with SD-card using SdFAT on an Arduino UNO with 32 kB Flash and 2 kB RAM ...ag123 wrote: Sat May 25, 2024 3:07 pm for the small chips, e.g. STM32C011, I've got instead a bunch of STM32G030
viewtopic.php?t=1848![]()
The STM32C011 was able to read values from a BH1750 light sensor, but:
Sketch uses 30524 bytes (93%) of program storage space. Maximum is 32768 bytes.
Global variables use 1504 bytes (24%) of dynamic memory, leaving 4640 bytes for local variables. Maximum is 6144 bytes.
A STM32G031 has 64 kB Flash and STM32G070/71/80/81 have 128 kB Flash/36 kB RAM.
At 64 MHz or 16 MHz current consumption is half of a STM32F411.
Or a STM32G0B1CBT6 with 128 kB Flash and 128 kB RAM.
TSSOP20 is a problem, with LQFP48 (or larger) there is a VBAT-pin. With less than 600 nA RTC can survive.
I found STM32G070-boards for about 4 € as next step.