Search found 146 matches

by ozcar
Sat Dec 17, 2022 6:55 am
Forum: General discussion
Topic: STM32 TVout Upgrade to Work with Video Overlay - Help Needed
Replies: 7
Views: 1566

Re: STM32 TVout Upgrade to Work with Video Overlay - Help Needed

Wait, so if I attach a hardware interrupt falling edge to say pin PB3 (which the datasheet says is TIM2_CH2), when I pull PB3 LOW, will that automatically reset TIM2_CH2? Have you got any of the demos that come with the STM32 TVOUT to work? From what I can see, the OverlayDemo does not reset the ti...
by ozcar
Thu Dec 15, 2022 11:50 pm
Forum: General discussion
Topic: STM32 TVout Upgrade to Work with Video Overlay - Help Needed
Replies: 7
Views: 1566

Re: STM32 TVout Upgrade to Work with Video Overlay - Help Needed

// The code in this sub was copied from https://github.com/nootropicdesign/arduino-tvout-ve OverlayDemo sketch // It was inteneded to initialize ATMega registers for video overlay capability. // In order to work with STM32F103, I think I need to change this somehow for the STM registers? void Start...
by ozcar
Mon Dec 05, 2022 12:58 am
Forum: General discussion
Topic: Timer config for frequency measurement
Replies: 7
Views: 2080

Re: Timer config for frequency measurement

Using the ETR clock input allows operation upto at least 10MHz, haven't tried any higher yet. As mentioned over on eevblog, you'd have to use the ETR prescaler to reach your maximum of 30MHz. If you look at AN4776 "General-purpose timer cookbook", there is a section there on using an exte...
by ozcar
Sun Dec 04, 2022 7:47 pm
Forum: General discussion
Topic: Can't get arduino to install software.
Replies: 8
Views: 2149

Re: Can't get arduino to install software.

Resetting those boards into DFU bootloader is tricky as they are not designed properly. Open STM32CubeProgrammer and check if it detects board (select USB on top right as an interface). Here: https://www.stm32duino.com/viewtopic.php?t=1680 @bm16ton2 posted about a fix for F4x1 black pills and DFU b...
by ozcar
Sat Nov 26, 2022 7:26 pm
Forum: General discussion
Topic: Working with Netduino Plus 2 - clock for ENC28J60
Replies: 10
Views: 3196

Re: Working with Netduino Plus 2 - clock for ENC28J60

Good that you got it working.

I would have thought that your SystemClock_Config() would get used anyway without you having to call it from setup() though.
by ozcar
Fri Nov 25, 2022 10:09 am
Forum: General discussion
Topic: Working with Netduino Plus 2 - clock for ENC28J60
Replies: 10
Views: 3196

Re: Working with Netduino Plus 2 - clock for ENC28J60

I see there is at least one existing F4 board with 25MHz HSE, called "Blue F407VET mini". Perhaps you could try with the generic F405GTx board definition, with SystemClock_Config() copied into your sketch from https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32F4xx/F4...
by ozcar
Thu Nov 24, 2022 1:33 am
Forum: General discussion
Topic: Working with Netduino Plus 2 - clock for ENC28J60
Replies: 10
Views: 3196

Re: Working with Netduino Plus 2 - clock for ENC28J60

From a quick look there does not seem to be a board definition for that, so you might have to create one yourself. Have a look here: https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-%28board%29. The board appears to have a 25MHz crystal, so you want to set up the clock config for that. Ther...
by ozcar
Mon Nov 21, 2022 8:58 pm
Forum: General discussion
Topic: possible to direct access RNG registers of 32F411 via arduino-ide?
Replies: 11
Views: 1897

Re: possible to direct access RNG registers of 32F411 via arduino-ide?

CMSIS definition from https://github.com/stm32duino/Arduino_Core_STM32/blob/main/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h I think this should be enough: // Write to register RNG -> CR = 0; RNG -> CR = (RNG -> CR ) | RNG_CR_RNGEN; // enable bit RNG -> CR |= RNG_CR_RNGEN; // ena...
by ozcar
Sun Nov 20, 2022 10:47 pm
Forum: General discussion
Topic: possible to direct access RNG registers of 32F411 via arduino-ide?
Replies: 11
Views: 1897

Re: possible to direct access RNG registers of 32F411 via arduino-ide?

keepitsimple wrote: Sun Nov 20, 2022 2:51 am The 32F411 datasheet says it has a RNG, and the ST RM0090 datasheet (pages 767-771) clearly explain how the RNG works.
The datasheet I'm looking at does not mention RNG, and RM0090 does not appear to be for F411??
by ozcar
Tue Oct 18, 2022 12:53 am
Forum: General discussion
Topic: How use LPTIM
Replies: 15
Views: 2651

Re: How use LPTIM

Perhaps you need some #include in your code, like maybe for stm32l0xx_hal_lptim.h?

Go to advanced search