Search found 283 matches

by edogaldo
Fri Nov 24, 2017 9:03 am
Forum: General discussion
Topic: OverClock. at Runtime ~90MHz
Replies: 13
Views: 124

Re: OverClock. at Runtime ~90MHz

Looking at the usage of F_CPU looks like it should be enough to define F_CPU as a multiple of HSE (from 1*HSE to 16*HSE) to get the expected clocking (in a static way though). Instead I'm in doubt with: #define SYSTICK_RELOAD_VAL (F_CPU/1000) - 1 I think it should be better as: #define SYSTICK_RELOA...
by edogaldo
Thu Nov 23, 2017 7:53 am
Forum: General discussion
Topic: Problem with PWM Output lots of noise.
Replies: 6
Views: 111

Re: Problem with PWM Output lots of noise.

Maybe, just an hypotesis though, this could depend on irq priorities.
Try investigating in that direction.

Cheers, E.
by edogaldo
Mon Nov 20, 2017 7:54 am
Forum: General discussion
Topic: STM32 versus arduino pro mini
Replies: 4
Views: 183

Re: STM32 versus arduino pro mini

@marksparks Strange objective yours.. Looks like you want to implement a flight controller to drive another flight controller (because at the end a flight controller is a sw which takes an input signal - from the rc-, elaborates it with data from various sensors and then generates an output signal -...
by edogaldo
Sat Nov 18, 2017 12:48 pm
Forum: General discussion
Topic: Serial communication (PA9 & PA10) with stm32 bootloader
Replies: 2
Views: 91

Re: Serial communication (PA9 & PA10) with stm32 bootloader

You should use Serial1 if you want to output to USART1 when using the Maple bootloader.
by edogaldo
Wed Nov 08, 2017 1:18 pm
Forum: General discussion
Topic: Delay less than 1 µs ?
Replies: 14
Views: 248

Re: Delay less than 1 µs ?

YOU very much. I will try to do so Sorry, I made a mistake with setting BSRR.. Here a correction anyway I'm not able to test it on the F407 so I cannot guarantee there are no more errors: void setup() { // put your setup code here, to run once: pinMode(PA5,OUTPUT); //GPIOA.regs->BSRR = 0x0020; // s...
by edogaldo
Wed Nov 08, 2017 11:14 am
Forum: General discussion
Topic: Delay less than 1 µs ?
Replies: 14
Views: 248

Re: Delay less than 1 µs ?

you commented out "nop" loop () { digitalWrite(PA5,LOW); //asm volatile ("nop"); digitalWrite(PA5, HIGH); } the time remains the same - 200 ns at the switching state on pine ((( If you want to achieve clock level speed you need to go with assembly.. Here a sample asm sketch to toggle PA5 on F407: v...
by edogaldo
Tue Nov 07, 2017 4:19 pm
Forum: General discussion
Topic: Delay less than 1 µs ?
Replies: 14
Views: 248

Re: Delay less than 1 µs ?

Of course it's the digitalWrite and loop overhead..
14ns is the duration of the single asm(nop) (on f407 it's 1us/168 = 6ns) which is far little respect to the duration of all other stuff..
by edogaldo
Mon Nov 06, 2017 12:49 pm
Forum: General discussion
Topic: Delay less than 1 µs ?
Replies: 14
Views: 248

Re: Delay less than 1 µs ?

Running @72MHz your clock period is little less than 14ns (assuming an F103 mcu) so I'd say that 14ns is the minimum resolution you could achieve.
To delay one clock cycle by code you could use:

Code: Select all

asm volatile ("nop");
by edogaldo
Sun Nov 05, 2017 3:53 pm
Forum: General discussion
Topic: Is the core's USB support dependent on the bootloader?
Replies: 3
Views: 99

Re: Is the core's USB support dependent on the bootloader?

In the Libmaple core the USB Serial is activated by setting pre-processor directive SERIAL_USB.
This is set in boards.txt depending on the upload method you chose.
Particularly, the Serial upload method does not drive USB Serial activation ootb but you could add it.

Best, E.
by edogaldo
Sat Nov 04, 2017 2:37 pm
Forum: Libraries & Hardware
Topic: FreeRTOSConfig.h parameters editing
Replies: 15
Views: 256

Re: FreeRTOSConfig.h parameters editing

I was just playing with Pak's sketch using the standard freertos configuration and I got this behaviour.
Maybe Pak changed something more (i.e. some config parameter or choose an upload method that for example does not drive the Maple VCP) and I was trying to find what..