Search found 37 matches

by piers
Tue Jun 16, 2020 1:36 am
Forum: ChibiOS/HAL
Topic: testhal ADC STM32H743 example improvement
Replies: 7
Views: 853

Re: testhal ADC STM32H743 example improvement

I just noticed I missed some changes, changing AN0 to AN16 too. Updated patches attached.

Currently trying to get dual mode ADC working. There seems to be an issue with the DMA.
by piers
Mon Jun 15, 2020 4:16 pm
Forum: ChibiOS/HAL
Topic: testhal ADC STM32H743 example improvement
Replies: 7
Views: 853

testhal ADC STM32H743 example improvement

I was testing the ADC of the STM32H743, and found a few things that could improved in the testhal example. 1. ADC1_IN0 is tied to PA9_C, a dedicated analog pin not available on the nucleo board. To sample PA0 instead replace IN0 by IN16 in . 2. It would be very useful to spit out the ADC values to U...
by piers
Tue Mar 31, 2020 3:11 pm
Forum: Bug Reports
Topic: ADC dual mode check incorrect in STM32H7 Topic is solved
Replies: 7
Views: 1203

Re: ADC dual mode check incorrect in STM32H7 Topic is solved

Ah, I see now there's more missing from the dual mode implementation. Here's a patch with some changes to make it at least compile, not tested. Would be nice to add a dual mode test in testhal too. For the stm32f4 I hacked together a separate multi mode adc driver (adc_multi.c/h in https://github.co...
by piers
Tue Mar 31, 2020 9:57 am
Forum: Bug Reports
Topic: ADC dual mode check incorrect in STM32H7 Topic is solved
Replies: 7
Views: 1203

ADC dual mode check incorrect in STM32H7 Topic is solved

The check in os/hal/ports/STM32/LLD/ADCv4$ code hal_adc_lld.h line 293 is incorrect (STM32_ADC_USE_ADC1 doesn't exist), and seems superfluous, the same is checked at line 258.

Thanks again for this great project!
by piers
Wed Jul 13, 2016 4:01 pm
Forum: ChibiOS/RT
Topic: Linking errors with C++
Replies: 4
Views: 2552

Re: Linking errors with C++

Thanks for this fix! Is there a reason it is not incorporated in ChibiOS yet?

You say it's fixed, in which GCC release it should have been fixed? At least I still get this behaviour in gcc 5.4.
by piers
Fri Jul 01, 2016 4:55 pm
Forum: STM32 Support
Topic: STM32F7 Floating Point
Replies: 4
Views: 2076

Re: STM32F7 Floating Point

Additionally the fpv4-sp-d16 is also listed in the asm files crt0_v7m.s, nilcoreasm_v7m.s and chcoreasm_v7m.s. I assume it must be changed to fpv5-sp-d16 there too? And when looking to these files it feels strange that in crt0_v7m.s there is .cpu cortex-m3, and in the other two .cpu cortex-m4, indep...
by piers
Thu Jun 30, 2016 5:17 pm
Forum: STM32 Support
Topic: Using MCU = cortex-m7
Replies: 2
Views: 948

Re: Using MCU = cortex-m7

I did a quick measurement of the speed increase from using MCU = cortex-m4 to cortex-m7 on an almost pure float synthesizer thread, and got a performance increase of 7.1% at low duty cycle (18.86 -> 17.60) and a 3.6% increase at higher duty cycle (62.09 -> 59.92). I used GCC 5.3 with -O3. P.S. USE_F...
by piers
Thu Jun 30, 2016 4:51 pm
Forum: STM32 Support
Topic: STM32F7x[7,8,9] double prec FPU
Replies: 13
Views: 3011

Re: STM32F7x[7,8,9] double prec FPU

Thanks, I'm trying to get my hands on some STM32F767's, seems well worth the upgrade (I'm now using STM32F745).
by piers
Wed Jun 22, 2016 11:20 am
Forum: STM32 Support
Topic: Using MCU = cortex-m7
Replies: 2
Views: 948

Using MCU = cortex-m7

Using MCU = cortex-m7 with GCC 4.9 causes an _unhandled_exception, at least when using the USB driver. (for example in STM32F7xx/USB_CDC project). With GCC 5.3 it seems to be stable. According to the changelogs support for Cortex-M7 was added in 4.9, while Cortex-M7 performance tuning was added in 5...
by piers
Thu Feb 12, 2015 11:21 pm
Forum: Development and Feedback
Topic: STM32F4 multi ADC mode
Replies: 10
Views: 6527

Re: STM32F4 multi ADC mode

Oops, stupid mistake, thanks for noticing.

Piers

Go to advanced search