Search found 37 matches

by piers
Sat Jan 31, 2015 4:31 pm
Forum: Development and Feedback
Topic: STM32F4 multi ADC mode
Replies: 10
Views: 6527

Re: STM32F4 multi ADC mode

Sorry, that last one was without DMA, for multi ADC mode, for normal ADC it should be: /* ADC configuration and start, the start is performed using the method specified in the CR2 configuration, usually ADC_CR2_SWSTART.*/ adcp->adc->CR1 = grpp->cr1 | ADC_CR1_OVRIE | ADC_CR1_SCAN; if ((grpp->cr2 &...
by piers
Fri Jan 30, 2015 4:11 pm
Forum: Development and Feedback
Topic: STM32F4 multi ADC mode
Replies: 10
Views: 6527

Re: STM32F4 multi ADC mode

Hi Giovanni, I've solved the issue with a change that's probably good to put in the main release of ChibiOS too. By setting the SWSTART bit in the ADC_CR2 register in a separate write all the issues with spurious DMA transfers in various cases are gone. In os/hal/platforms/STM32F4xx/adc_lld.c at lin...
by piers
Thu Jan 29, 2015 6:31 pm
Forum: Development and Feedback
Topic: STM32F4 multi ADC mode
Replies: 10
Views: 6527

Re: STM32F4 multi ADC mode

I'm using the 16 bit (half word) mode. I might try to use the 32 bit mode, but that needs changing the ChibiOS code and some thinking about how it will be handled. And still the 16 bit mode should work too. Probably I'll just make a workaround to ignore the double value. I looked at the double mode ...
by piers
Thu Jan 29, 2015 5:07 pm
Forum: Development and Feedback
Topic: STM32F4 multi ADC mode
Replies: 10
Views: 6527

STM32F4 multi ADC mode

Since there is no multi ADC mode support for STM32F4 in ChibiOS I've been doing a test to see if I could get triple adc mode to work. I hacked together some replacements for adcStart and adcStartConversion that use triple adc mode. This generally works, but there is something strange with the DMA st...
by piers
Thu Jun 14, 2012 3:13 pm
Forum: General Support
Topic: USB CDC speed and truncated binary data
Replies: 3
Views: 2032

Re: USB CDC speed and truncated binary data

Thanks, I wasn't aware that serial ports by default are openened in cooked, or canonical mode, setting the right mode flags with stty fixed it. stty -F /dev/ttyACM0 clocal cread Regarding the speed, sending with larger write operations increased the speed somewhat, by writing chunks of 1024 Bytes th...
by piers
Fri Jun 08, 2012 2:03 pm
Forum: General Support
Topic: USB CDC speed and truncated binary data
Replies: 3
Views: 2032

USB CDC speed and truncated binary data

I'm testing the USB serial driver on the STM32F103, which now works fine (after noticing that there is no internal pullup like on the STM32F4). However, I have some issues: When sending binary data it gets corrupted in some strange way, some byte values are never received, some sometimes. The uC doe...
by piers
Sun Apr 15, 2012 3:32 pm
Forum: Development and Feedback
Topic: STM32 OTG USB driver (F107, F2, F4)
Replies: 4
Views: 2258

Re: STM32 OTG USB driver (F107, F2, F4)

Good to see at least something working now, keep up the good work.
Are you mainly working from the specification or from the ST supplied driver?

Go to advanced search