Search found 9 matches

by daniel_s
Fri Feb 17, 2017 1:06 pm
Forum: ChibiOS/HAL
Topic: Dual/Triple ADC mode for STM32F4
Replies: 1
Views: 2182

Dual/Triple ADC mode for STM32F4

Hello,
is it planned to introduce double/triple mode config for ADC for STM32F4?
I think implementations are already available for the F3, i'd appreciate it for the F4 as wall.
Regards
by daniel_s
Fri Feb 03, 2017 2:25 pm
Forum: ChibiOS/HAL
Topic: STM32F4 SPI: DMA Transfer Error Interrupt
Replies: 7
Views: 7954

Re: STM32F4 SPI: DMA Transfer Error Interrupt

Hi Giovanni,
thanks for your fast response.

Are debug options enabled in chconf.h? those could give an hint about the problem.

I don't use the Chibi-OS as Kernel. I'm working OS-less. I enabled OSAL_DBG_ENABLE_ASSERTS and OSAL_DBG_ENABLE_CHECKS in osalconf.h, but I didn't get on with it until ...
by daniel_s
Fri Feb 03, 2017 9:04 am
Forum: ChibiOS/HAL
Topic: STM32F4 SPI: DMA Transfer Error Interrupt
Replies: 7
Views: 7954

STM32F4 SPI: DMA Transfer Error Interrupt

Hello,
I'm using SPI2 of STM32F407 series to send data to a DAC module each 50us.
After some seconds, system is halted due to an Transfer Error Interrupt Flag (TEIF), which was detected in function spi_lld_serve_rx_interrupt(). This function was called by Vector78, which is the IRQ Handler for DMA ...
by daniel_s
Thu Feb 11, 2016 8:37 am
Forum: ChibiOS/HAL
Topic: ADCv2 Dual and triple mode
Replies: 4
Views: 3699

Re: ADCv2 Dual and triple mode

I'd appreciate this implementation for the F4 as well
by daniel_s
Fri Jan 15, 2016 11:00 am
Forum: ChibiOS/HAL
Topic: Using Hall Sensor Interface of STM32F3/F4
Replies: 3
Views: 5902

Re: Using Hall Sensor Interface of STM32F3/F4

Hi,
how to interface with Hall sensors is described e.g. in ST Reference Manual RM0316 for STM32F303... in chapter 20.3.23:

Link to Manual:
http://www.st.com/web/en/resource/technical/document/reference_manual/DM00043574.pdf

Daniel
by daniel_s
Fri Jan 15, 2016 9:03 am
Forum: ChibiOS/HAL
Topic: Using Hall Sensor Interface of STM32F3/F4
Replies: 3
Views: 5902

Using Hall Sensor Interface of STM32F3/F4

Hi Giovanni,
I intend to use the Hall Sensor Interface, provided by e.g. STM32F3 or F4.
To do so, an interfacing timer is needed to be configured, to capture any Hall sensor change (a Special XOR-functionality allows, to use only one channel for this purpose). This can be seen as an ICU ...
by daniel_s
Thu Dec 10, 2015 8:32 am
Forum: ChibiOS/HAL
Topic: Forcing PWM channel active
Replies: 5
Views: 4858

Re: Forcing PWM channel active

I think, that there are lots of functions, that would be necessary in this context. A function, that implements descripted behaviour, would look like this (derived from STCube):


#define STM32_TIM_CCMR1_OC1M(n) ((((n) & 7) << 4) |(((n) >> 3) << 16))

void pwm_lld_stm32_force_oc1_configX(PWMDriver ...
by daniel_s
Tue Dec 08, 2015 2:23 pm
Forum: ChibiOS/HAL
Topic: Forcing PWM channel active
Replies: 5
Views: 4858

Re: Forcing PWM channel active

Hi Giovanni,

you are right. But in my current configuration, I want to drive a motor with block commutation. An example for one commutation step is as follows:
- CH1 and CH1N are acting as PWM channels, activation via pwmEnableChannel() for Channel 1
- CH2 inactive, CH2N active, activation could be ...
by daniel_s
Tue Dec 08, 2015 1:57 pm
Forum: ChibiOS/HAL
Topic: Forcing PWM channel active
Replies: 5
Views: 4858

Forcing PWM channel active

Hi,

I'm starting to use ChibiHAL for PWM purposes (mainly motor controlling) at the moment.
Currently I'm looking for a possibility to force a PWM Channel active (or inactive), which is possible by setting "Output Compare 1 mode" in TIMx_CCMR1 register.
It seems, that access is neither possible via ...