Search found 117 matches

by acronis
Thu Oct 19, 2017 11:37 am
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 104
Views: 3796

Re: [libmaple] Black F407VET6

Hello Steven

Rewrote all the code in &ADCx, but the error persists



dataPoints[j+1] = &ADC2->regs->DR & ADC_DR_DATA;

base operand of '->' has non-pointer type 'const adc_dev'


In this line, correct the code ?
by acronis
Sun Oct 15, 2017 11:32 pm
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 104
Views: 3796

Re: [libmaple] Black F407VET6

Hello Steven !

I hear You.
You did a great job by adding support STM32F4.
I really hope that You will be able to add support for ADC on this Board.
by acronis
Sun Oct 15, 2017 12:43 pm
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 104
Views: 3796

Re: [libmaple] Black F407VET6

Steven Thank you. This error is gone , but there were other dc_read:412: error: base operand of '->' has non-pointer type 'const adc_dev' on line dataPoints[j+1] = ADC2->regs->DR & ADC_DR_DATA; void fetch() { // const adc_dev *dev = PIN_MAP[analogInPin].adc_device; int channel = PIN_MAP[analogInPin]...
by acronis
Sat Oct 14, 2017 9:36 pm
Forum: STM32F4 Boards
Topic: [libmaple] Black F407VET6
Replies: 104
Views: 3796

Re: [libmaple] Black F407VET6

Hello Steven. Doing a project in which I need a fast ADC. Took example code https://github.com/arpruss/stm32scope-experiment/blob/master/scope.ino . It is compiled on the Board STM32F1* great. But the Board STM32F407VET6 error error: cannot convert 'const adc_dev' to 'const adc_dev*' for argument '1...
by acronis
Sat Oct 14, 2017 2:19 am
Forum: General discussion
Topic: The fastest ADC (analogRead) - how ?
Replies: 10
Views: 394

Re: The fastest ADC (analogRead) - how ?

adc_set_sample_rate(ADC1, ADC_SMPR_1_5); // ADC_SMPR_13_5, ADC_SMPR_1_5 On-Board STM32F103 it all compiles fine On-Board STM32F407 error error: cannot convert 'const adc_dev' to 'const adc_dev*' for argument '1' to 'void adc_set_sample_rate(const adc_dev*, adc_smp_rate)' adc_set_sample_rate(ADC1, AD...
by acronis
Fri Oct 13, 2017 2:01 pm
Forum: General discussion
Topic: The fastest ADC (analogRead) - how ?
Replies: 10
Views: 394

Re: The fastest ADC (analogRead) - how ?

Hello.
Can I use this code on the Board STM32F4* - F7* library https://github.com/danieleff/STM32GENERIC ?
by acronis
Wed Oct 11, 2017 11:48 pm
Forum: General discussion
Topic: [SOLVED] pin state Hi-Z (floating)
Replies: 2
Views: 82

Re: pin state Hi-Z (floating)

hello pito!

A simple switch to give INPUT Hi-Z state ? Everything is so simple ?
I thought that there is some sort of special operator for this.

Thank you as always for your help.
by acronis
Wed Oct 11, 2017 1:46 pm
Forum: General discussion
Topic: [SOLVED] pin state Hi-Z (floating)
Replies: 2
Views: 82

[SOLVED] pin state Hi-Z (floating)

Hello.
Tell me what team in the process of the program to transfer the pin state Hi-Z (floating) ?

Using a library - https://github.com/danieleff/STM32GENERIC
Board - STM32F746G-DISCO 
by acronis
Sun Oct 01, 2017 10:07 am
Forum: General discussion
Topic: The fastest ADC (analogRead) - how ?
Replies: 10
Views: 394

Re: The fastest ADC (analogRead) - how ?

just starting to learn ADC , and I find it difficult to understand.
Could you fix my code for maximum performance ?
I would be very grateful
by acronis
Sun Oct 01, 2017 9:03 am
Forum: General discussion
Topic: The fastest ADC (analogRead) - how ?
Replies: 10
Views: 394

The fastest ADC (analogRead) - how ?

Hello. Using a library - https://github.com/danieleff/STM32GENERIC Board - STM32F746G-DISCO  I need to quickly read an analog signal (ADC). I wrote a program , but the speed is slow 25 µs . How to do the same , but as quickly as possible. int IntArray[10000]; pinMode(A3, INPUT); for (int a = 0; a < ...