Search found 1918 matches

by ag123
Sat Mar 04, 2023 12:26 am
Forum: General discussion
Topic: BlackPill V3.1 Bootmode wrong USB VID/PID
Replies: 19
Views: 12962

Re: BlackPill V3.1 Bootmode wrong USB VID/PID

there is a traditional finger dance for stm32f4xx pill boards.
- press boot0 and reset
- release reset but hold boot0
- release boot0 1 sec later
that is the correct way to get into the *real* USB DFU mode, the on-chip USB DFU mode that is. it should flash with the STM32cube programmer and dfu-util ...
by ag123
Fri Mar 03, 2023 4:19 pm
Forum: Off topic
Topic: Taking a look at STM32G0 series
Replies: 95
Views: 498748

Re: Taking a look at STM32G0 series

oops i'd need to catch up, i stashed it in the box. :lol:
g0 is 'slightly improved', e.g. the adc etc.
I'd likely try HSI, as I'd use one of those SOIC-20 'adaptor' boards and my breadboard.
by ag123
Thu Mar 02, 2023 3:30 am
Forum: General discussion
Topic: USB virtual com-port for Blue Pill
Replies: 6
Views: 6573

Re: USB virtual com-port for Blue Pill

with STM core to use the USB (virtual) com port, you need to compile your sketch with USB (CDC) Serial selected.
then you can use a sketch as like

void setup() {
Serial.begin();
while(!Serial);
}

void loop() {
println("hello world");
delay(1000);
}

virtual com port is Window's notion of a ...
by ag123
Wed Mar 01, 2023 4:09 am
Forum: USB bootloader
Topic: bootloader seems to get overwritten
Replies: 10
Views: 30373

Re: bootloader seems to get overwritten

you need to ensure that you have selected USB (CDC) Serial in your sketch as your default Serial device.
then your Serial would be USB Serial.
and you can test that with things like

Code: Select all

void loop() {
  Serial.println("hello world");
  delay(1000);
}
by ag123
Sat Feb 25, 2023 3:58 pm
Forum: General discussion
Topic: ILI9341 display not working with STM32 core
Replies: 6
Views: 4200

Re: ILI9341 display not working with STM32 core

I've not visited this in a while, I've made a fork of it sometime back.
https://github.com/ag88/Adafruit_ILI9341_SPI_stm32duino
https://www.stm32duino.com/viewtopic.php?t=896
https://www.stm32duino.com/viewtopic.php?t=895

note that I've not tested it on a stm32f103c8, and that it has been a while ...
by ag123
Thu Feb 23, 2023 4:04 am
Forum: Custom design boards
Topic: Calibrate HSI in custom board with stm32g030
Replies: 6
Views: 19096

Re: Calibrate HSI in custom board with stm32g030

stm32g030 is quite a different and new chip
https://www.stm32duino.com/viewtopic.php?t=1848

among the things that is "unusual" (different), PC15 pin is shared between OSC32_EN (default) and OSC_EN
https://www.stm32duino.com/viewtopic.php?t=1848&start=10
so I'd guess either a 32k crystal can be used ...
by ag123
Fri Feb 17, 2023 5:02 am
Forum: Off topic
Topic: Newer != Better
Replies: 3
Views: 15847

Re: Newer != Better

try doing CMake, I think it is a better 'platform' to build the firmware. A trouble, is due to the huge portfolio of MCU series, STM32 F1, F3, F4, F7, H7, G0, C0, WB, MP1 etc, doing things with #includes and #ifdef is sooner than later going to tie up a huge amount of dependencies.

CMake allows the ...
by ag123
Thu Feb 16, 2023 10:27 pm
Forum: IDE's
Topic: Arduino IDE 2 & Debug feature
Replies: 45
Views: 118274

Re: Arduino IDE 2 & Debug feature

openocd (at least on linux) is quite tricky, it runs as a server and has its own console.
Hence, I'd normally start openocd separately in its own terminal session, normally driven by a script.

Then from the IDE, i start gdb or more correctly arm-none-eabi-gdb.
The key is arm-none-eabi-gdb
1 - needs ...
by ag123
Thu Feb 16, 2023 8:13 pm
Forum: IDE's
Topic: Arduino IDE 2 & Debug feature
Replies: 45
Views: 118274

Re: Arduino IDE 2 & Debug feature

I've not yet tried this out, but I'm thinking about it and just some 2 cents suggestions.

I'd think it is probably adequate for the IDE to start arm-none-eabi-gdb
so that it probably does a
(gdb) target remote :3333
gdb has to locate the local elf file with all the symbols and source.

this is so ...
by ag123
Thu Feb 16, 2023 7:14 pm
Forum: Off topic
Topic: i2c io expanders
Replies: 3
Views: 11370

Re: i2c io expanders

To a good extent, yup, we can probably 'daisy chain' 2 stm32g030f6p6, so that one handles 'extra' IO, but it seemed like a 'waste' of transistors :lol:
i'm thinking there could be other designs as well, e.g. one could simply be a 'display driver' say driving an LCD, possibly including decoding a ...

Go to advanced search