Search found 14 matches
- Sat Sep 23, 2023 6:58 pm
- Forum: STM32 Support
- Topic: STM32F373 DMA struggles
- Replies: 2
- Views: 1168
Re: STM32F373 DMA struggles
Never mind... I figured it out after some more reference manual reading. For anybody trying to do the same, you need to set the SYSCFG_CFGR1_TIM6DAC1Ch1_DMA_RMP, SYSCFG_CFGR1_TIM7DAC1Ch2_DMA_RMP and/or SYSCFG_CFGR1_TIM18DAC2Ch1_DMA_RMP bits in SYSCFG->CFGR1 to remap the DMA channels from (2,3), (2,4...
- Sat Sep 23, 2023 4:48 pm
- Forum: STM32 Support
- Topic: STM32F373 DMA struggles
- Replies: 2
- Views: 1168
STM32F373 DMA struggles
Hi, I am trying to use the SDADC and the DAC (both with 2 channels) with DMA on my custom STM32F373 board using ChibiOS 20.3.2. In ChibiOS 20.3.2, both SDADC and DAC are configured to use the same DMA channels: From ChibiOS-20.3.2/os/hal/ports/STM32/STM32F37x/stm32_registry.h /* DAC attributes.*/ #d...
- Fri Jun 22, 2018 5:06 pm
- Forum: User Projects
- Topic: STM32F030F4 Shell, PWM Sinewave, ADC, TIM14
- Replies: 2
- Views: 4718
Re: STM32F030F4 Shell, PWM Sinewave, ADC, TIM14
Hey Robert, thanks for sharing your work. I am struggling with my STM32F030F4 and ChibiOS-18.2.0/1, so I thought I give your example code a try. I downloaded ChibiOS-17.6.4 (since it seems that your project is using 17.6.x) and tried to compile, but the compiler complains that it can't find the boar...
- Tue Jan 30, 2018 10:36 pm
- Forum: STM32 Support
- Topic: DFU Mode from running code?
- Replies: 7
- Views: 5363
Re: DFU Mode from running code?
I tried this before and failed. I am not sure what I did wrong, but I was not able to get the DFU mode running after ChibiOS initialized the uC. My solution was a combination of hard and software. I used a 1 MOhm pull-down resistor for the BOOT0 pin and added a 2.2uF cap in parallel. And I also conn...
- Mon Jun 15, 2015 2:45 pm
- Forum: STM32 Support
- Topic: Is STM32F030K6 supported?
- Replies: 14
- Views: 6743
Re: Is STM32F030K6 supported?
Gunzung, please find the blink project attached. It compiles with a stock 2.6.8 (my 2.6.3 is a bit modified, so I tested it also against a clean 2.6.8). Works on my very simple STM32F030F4 development/breakout board. LED goes between PIN14 (PB1) and GND (PIN15) with suitable current limiting resisto...
- Fri Jun 12, 2015 4:09 am
- Forum: STM32 Support
- Topic: Is STM32F030K6 supported?
- Replies: 14
- Views: 6743
Re: Is STM32F030K6 supported?
I have ChibiOS 2.6.3 running with a STM32F030F4 without issues using PWM, ICU, ADC and Serial. So the F030 are at least somewhat supported. The F4 has also 4kB of RAM and only 16kB of Flash, whereas the K6 has 32kb of Flash... If you tell me on which GPIO your LED is, I could send you a sample blink...
- Tue Apr 14, 2015 4:19 am
- Forum: STM32 Support
- Topic: DAC error for STM32F4 discovery
- Replies: 13
- Views: 8654
Re: DAC error for STM32F4 discovery
Fabien, I think I found two small errors in you DAC driver (I used the one from https://github.com/ChibiOS/ChibiOS-Drivers/tree/ChibiOS-2.6): I was trying to use dacConvert with channel 2 on a custom STM32F4 board, but at first I only could set channel 1, channel 2 stayed at 0 V. In dac_lld_single_c...
- Fri Mar 07, 2014 3:47 pm
- Forum: STM32 Support
- Topic: [TODO] ICU not working in 2.6.3 without period CB
- Replies: 7
- Views: 4068
Re: ICU not working in 2.6.3 without period CB
Yes, it is working with NULL in 2.6.1 and 2.6.2 (at least for me on an STM32F4 and an STM32F1...). And the overflow cb is NULL in the example as well, so how should one know that the other cb's can't be NULL? If it is that way, perhaps we should add an assert there so we can catch it?
- Wed Mar 05, 2014 11:26 pm
- Forum: General Support
- Topic: Soft reset
- Replies: 17
- Views: 16136
Re: Soft reset
Mike, I guess your right (some I got confused, my code would jump to 0x1FFF0004, but you need to jump to the address stored at 0x1FFF0004), but even with the correct jump the boot loader does not start correctly. I tried several different ways to stop ChibiOS and to re/de-initialize the uC, but no l...
- Wed Mar 05, 2014 11:07 pm
- Forum: STM32 Support
- Topic: [TODO] ICU not working in 2.6.3 without period CB
- Replies: 7
- Views: 4068
[TODO] ICU not working in 2.6.3 without period CB
Hi, I have problems with 2.6.3 using the ICU wihtout a period CB (on a STM32F4Discovery board). If I define a dummy period CB, 2.6.3 works as 2.6.2.Without the periodCB, the widthCB does not get called. Here is a modified PWM_ICU example showing the problem: #include "ch.h" #include "...