Search found 405 matches

by GonzoG
Sun Apr 28, 2024 12:42 pm
Forum: General discussion
Topic: STM32 Pinout Polarity
Replies: 1
Views: 16

Re: STM32 Pinout Polarity

Depends on what you mean by "-".
1. Is it a negative voltage (in relation to GND) - then they are always >= 0V
2. or is it GND - then both. They can be + or -.
by GonzoG
Sat Apr 27, 2024 5:05 pm
Forum: General discussion
Topic: Stumbling at the first connection...
Replies: 3
Views: 280

Re: Stumbling at the first connection...

F103 does not have hardware USB bootloader. If there is no firmware with USB support there won't be a connection.
I recommend flashing HID bootloader, but you need USB-TTL adapter or ST-Link.
by GonzoG
Sat Mar 02, 2024 11:35 am
Forum: General discussion
Topic: Where to find "SysTick->VAL" is modified ?
Replies: 2
Views: 866

Re: Where to find "SysTick->VAL" is modified ?

You won't find it. It's hardware counter. It's changed by hardware.
by GonzoG
Sat Jan 27, 2024 10:03 am
Forum: STM32H7 based boards
Topic: STM32H723
Replies: 3
Views: 1733

Re: STM32H723

SKR 3 uses 25MHz external oscillator, generic H723 is defined with internal oscillator, you might need to define new board variant: https://github.com/stm32duino/Arduino_Core_STM32/wiki/Add-a-new-variant-%28board%29 or redefine SystemClock_Config(void) Also, I think that HS USB needs external PHY th...
by GonzoG
Wed Jan 24, 2024 6:58 pm
Forum: General discussion
Topic: I failed to output PWM with PA7 and PA8 at the same time
Replies: 4
Views: 1974

Re: I failed to output PWM with PA7 and PA8 at the same time

analogWriteFrequency(1000);is to set the frequency of all PWM, how to set the frequency of 1 pin separately analogWriteFrequency(); changes frequency for next use of analogWrite(), but it will change frequency for all channels on a timer. If you use 2 or more pins that use same timer for PWM, frequ...
by GonzoG
Thu Oct 26, 2023 7:06 pm
Forum: General discussion
Topic: Speed Up your IO !!
Replies: 16
Views: 5534

Re: Speed Up your IO !!

dannyf wrote: Wed Oct 25, 2023 9:42 pm
18MHz signal.
Fast IO is implemented via BRR/BSRR.

Hard to imagine that they could get that fast.
digitalWriteFast and digitalReadFast are using LL functions. With O3 (fastest) optimization they can go this fast.
On F401 and F411 they need 1 MCU cycle.
This is what I get with F411CE:
6.jpg
6.jpg (58.78 KiB) Viewed 1931 times
by GonzoG
Wed Oct 25, 2023 5:03 pm
Forum: General discussion
Topic: Speed Up your IO !!
Replies: 16
Views: 5534

Re: Speed Up your IO !!

I got 19MHz wit digitalReadFast and 33MHz with digitalWriteFast, but with typing 1000 lines of code. While loop needs few cycles. @GonzoG PLease give us your code ! (I do not pretend to get the fastest .. just starting to play) Sorry.. copied wrong values. Those were Mops/s, so frequency is half of...
by GonzoG
Mon Oct 23, 2023 7:27 pm
Forum: General discussion
Topic: Speed Up your IO !!
Replies: 16
Views: 5534

Re: Speed Up your IO !!

ManX84 wrote: Mon Oct 23, 2023 4:04 pm Need Faster ?

Code: Select all

	// Here use a digitalWriteFast !
	do
	{
		digitalWriteFast(PC_13, 1);
		digitalWriteFast(PC_13, 0);
	} while (1);
F = 7 MHz! :mrgreen:
I got 19MHz wit digitalReadFast and 33MHz with digitalWriteFast, but with typing 1000 lines of code.
While loop needs few cycles.
by GonzoG
Sat Oct 14, 2023 1:39 pm
Forum: General discussion
Topic: Load Firmware from sd
Replies: 6
Views: 2340

Re: Load Firmware from sd

It can be done, but not without using LL or CMSIS and it will need way more flash and RAM then code written in "pure" c/c++.

There are many open source bootloaders that use SD card to flash firmware. You might even find one for your MCU or might need to tweak few lines of code.

Go to advanced search