Search found 149 matches

by ozcar
Thu Aug 08, 2024 8:04 pm
Forum: PR's bugs and enhancements
Topic: STM32G431CBU6 (and others) : USARTs : how to declare only Rx pin
Replies: 14
Views: 3350

Re: STM32G431CBU6 (and others) : USARTs : how to declare only Rx pin

some of the features of the USARTs (from the reference manual of your G431, a very interesting document ! ) : • Separate enable bits for transmitter and receiver ... I don't know anything specific about G431, but there are many hardware features that STM32DUINO does not support, even for F103 p ...
by ozcar
Sun Jul 14, 2024 8:17 pm
Forum: General discussion
Topic: Discharging the battery for the FSE clock
Replies: 20
Views: 3213

Re: Discharging the battery for the FSE clock

I've seen that there are STM32F411-based boards https://fr.aliexpress.com/item/1005006127461676.html?spm=a2g0o.productlist.main.1.29b3UriPUriPFg&algo_pvid=6335e4ed-da8e-47b4-9bd1-d188e2c38ab2&algo_exp_id=6335e4ed-da8e-47b4-9bd1-d188e2c38ab2-0&pdp_npi=4%40dis%21EUR%215.88%210.99%21%21%2145.34%217.58 ...
by ozcar
Sat Jul 13, 2024 6:40 pm
Forum: General discussion
Topic: Discharging the battery for the FSE clock
Replies: 20
Views: 3213

Re: Discharging the battery for the FSE clock

If you have a spare ADC capable GPIO, maybe you could connect VBAT to that and then periodically enable the pull-down (to give it some load) and then read the voltage.

This is not something I have done though.
by ozcar
Mon Apr 29, 2024 3:31 am
Forum: General discussion
Topic: STM32 Pinout Polarity
Replies: 5
Views: 20125

Re: STM32 Pinout Polarity

For some other processors GPIO pins may not have symmetrical output capability. For example, they might be able to sink more current than they can source, and that could influence the way you might connect a LED to them. However for the STM32 processors that I have used, the datasheets indicate ...
by ozcar
Sun Apr 28, 2024 4:00 am
Forum: Libraries & Hardware
Topic: Adafruit Nexopixel Library not working...
Replies: 8
Views: 19849

Re: Adafruit Nexopixel Library not working...

All white is an indication that the pulse durations are too long, resulting in every bit being interpreted as “1”. I looked at the Adafruit library some years ago, and the timing was a bit out, but the pulses were actually on the short side, which could cause the opposite problem of all LEDs off. In ...
by ozcar
Sun Mar 31, 2024 6:25 am
Forum: General discussion
Topic: Hardware Serial returning gibberish.
Replies: 3
Views: 7951

Re: Hardware Serial returning gibberish.

Try

Code: Select all

Serial.write(gpsSerial.read());
by ozcar
Thu Feb 29, 2024 1:48 am
Forum: General discussion
Topic: STM32 hangs when >100khz signal applied to input
Replies: 19
Views: 6344

Re: STM32 hangs when >100khz signal applied to input

Dannyf, I missed your updates on the second page previously. It is a very different situation if you can avoid the STM32DUINO and maybe HAL code as well, but this could be easier said than done depending on what other parts of STM32DUINO need to be used in the final project. Maybe your "cut down ...
by ozcar
Wed Feb 28, 2024 9:07 pm
Forum: General discussion
Topic: STM32 hangs when >100khz signal applied to input
Replies: 19
Views: 6344

Re: STM32 hangs when >100khz signal applied to input

for around 5µs that's too long. your ISR overhead will be 20 ticks. Hard to imagine this thing goes over 100 ticks end-to-end. I will do some testing later on as well. I would be interested to see what you find. I've done tests like that before, and the result is not out of line with what I have ...
by ozcar
Wed Feb 28, 2024 5:22 am
Forum: General discussion
Topic: STM32 hangs when >100khz signal applied to input
Replies: 19
Views: 6344

Re: STM32 hangs when >100khz signal applied to input

I would approach the problem this way. 1. Set up an input capture on falling edge. No interrupt. 2. Set up one input capture on rising edge, interrupt enabled. In this isr, you will need to calculate the timer count elapsed between two isr invocations, and the difference between the count captures ...
by ozcar
Mon Feb 26, 2024 8:54 pm
Forum: General discussion
Topic: STM32 hangs when >100khz signal applied to input
Replies: 19
Views: 6344

Re: STM32 hangs when >100khz signal applied to input

I lifted up the first code you posted (that uses input capture) and tried it on 72MHz F103. I could not get it to work anywhere near 100kHz. At 20kHz it was producing output, but looking like this: Frequency = 0.0000 Dutycycle = 0.0000 I then changed it to produce the pwm output on pin PA1 instead ...

Go to advanced search