Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


You are viewing a reply to ADC/DMA transfer problem  

ADC/DMA transfer problem

The register bit names I use are the ones defined in the CMSIS headers - what you get if you #include “stm32f103xe.h” (or in my case, “stm32f091xc.h”)

I just took a quick look at the F103 ADC and it looks like it’s closer to the ADC on the F3 part than the one on the F0 series. You are correct that some of the register and bit names are different. The names may be a bit different (ADC1->CR1 instead of ADC1->CFGR1 for example) and the bit names are different in some cases too. When I was responding to your original request for help I was looking at the ADC code I had developed for my F091 project. I had to use different code for my F303 project, although it was based on the ADC library I created for the F0 ADC.

I apologize for the confusion this may have caused. I’ve not done much with the F1 series devices yet, and was operating under the (incorrect) assumption that the F1 ADC was the same as the one on the F0 parts.

I don’t use ADC interrupts in my F0 project(s), but I do test the interrupt status flags for the ADC in some places, as this is the only way to tell when certain events (end of conversion, end of sequence) occur. So I’m careful to explicitly clear the ADC1->ISR following init or prior to starting a new conversion.

I’m not certain just what generates the “trigger” for the DMA. It may be the EOC (end of conversion) ISR bit, it may be something else.

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs