Search found 66 matches

by ceremcem
Wed Oct 14, 2020 10:33 am
Forum: STM32 Support
Topic: STM32F030x4 ADC blocks other threads Topic is solved
Replies: 6
Views: 215

Re: STM32F030x4 ADC blocks other threads Topic is solved

Hi, Is you ADC SW-triggered? if so then it is an IRQ-storm, you get continuous interrupts because the circular conversion mode. Thow possible solutions: 1) Disable circular mode and start your ADC when needed. 2) Trigger your ADC using a timer, this way you can control the interrupts rate. Giovanni...
by ceremcem
Sat Oct 10, 2020 12:21 pm
Forum: STM32 Support
Topic: STM32F030x4 ADC blocks other threads Topic is solved
Replies: 6
Views: 215

Re: STM32F030x4 ADC blocks other threads Topic is solved

Buffer size is 1 but I don't know my sampling speed. I'm just mimicking the testhal/STM32/STM32F0xx/ADC, where is the location of sampling speed declaration in that example?

I'd been suspecting the sampling speed because I couldn't figure out where to configure it.
by ceremcem
Fri Oct 09, 2020 11:32 pm
Forum: User Projects
Topic: Web tool for ChibiOS Configuration
Replies: 7
Views: 386

Re: Web tool for ChibiOS Configuration

rreignier wrote:Nice tool!
Just a note, when downloading the zip, it seems that my browser (Firefox) thinks it is a plain text document and try to open the zip in text editor... Maybe a MIME type issue?


Yes, that was a MIME type issue. Fixed, thanks.
by ceremcem
Fri Oct 09, 2020 5:42 am
Forum: User Projects
Topic: Web tool for ChibiOS Configuration
Replies: 7
Views: 386

Re: Web tool for ChibiOS Configuration

Hi, The problem I can see is that board and configuration files change over time, this will create a tool update problem for you. Giovanni Actually that's exactly my point! :) I'm planning to place a dropdown over time for ChibiOS version selection to create appropriate configuration files. The gen...
by ceremcem
Thu Oct 08, 2020 10:17 pm
Forum: User Projects
Topic: Web tool for ChibiOS Configuration
Replies: 7
Views: 386

Re: Web tool for ChibiOS Configuration

I caught the exception that caused by a "null configuration" feed. I just fixed it. While fixing, I remembered a very important detail: Since I couldn't find a way to extract Alternate Function definitions from CubeMX database ( here is the question on my.st.com ) I had to manually create ...
by ceremcem
Thu Oct 08, 2020 7:45 pm
Forum: User Projects
Topic: Web tool for ChibiOS Configuration
Replies: 7
Views: 386

Web tool for ChibiOS Configuration

Hi, I created a web based hardware configuration tool for ChibiOS: https://github.com/ceremcem/chibios-configurator UX idea is simple: 1. Select your MCU 2. Configure pins via clicks, dropdowns, sliders, buttons. 3. Download the hardware definition files It's currently in alpha stage. I'm using my S...
by ceremcem
Thu Oct 08, 2020 6:05 pm
Forum: STM32 Support
Topic: STM32F030x4 ADC blocks other threads Topic is solved
Replies: 6
Views: 215

STM32F030x4 ADC blocks other threads Topic is solved

Intention I'm trying to adapt the testhal/STM32/STM32F0xx/ADC example on my custom board. Problem Normally I expect to read analog value from ADC input and the led blinker thread should toggle the output. However, 1. When I define adcgrpcfg1.circular as TRUE, it perfectly reads Analog Input but fai...
by ceremcem
Mon Aug 24, 2020 9:54 pm
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 551

Re: ADC configuration tool

For those who might be interested in, here is the code I use to extract the supported types (Linux, Bash):

Code: Select all

find -name stm32_registry.h -exec cat {} \; \
    | tr ' ' '\n' \
    | grep -oP '(?<=defined\()STM32.+(?=\))' \
    | sort \
    | uniq


Currently 135 entries generated.
by ceremcem
Mon Aug 24, 2020 4:17 pm
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 551

Re: ADC configuration tool

There are 1162 MCU definitions in STM database and around 144 MCU family definitions (or less?) in ChibiOS. In order to generate board.h dynamically, I need to map the exact MCU type (eg. "STM32F030F4Px") to the corresponding ChibiOS family definition (eg. "STM32F030x4"), or disp...
by ceremcem
Mon Aug 24, 2020 2:38 pm
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 551

Re: ADC configuration tool

Okay. Give me something then? There should be a way to obtain that list, right? To be clear, I'm trying to create a configuration tool for ChibiOS. It's much easier to support only MCU's that I personally use. That would prevent all the trouble. I'm okay with what I'm asking is a paid service, but t...

Go to advanced search