Search found 59 matches

by ceremcem
Mon Aug 24, 2020 9:54 pm
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 402

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: 402

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: 402

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...
by ceremcem
Mon Aug 24, 2020 1:00 pm
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 402

Re: ADC configuration tool

Demos lead a little: $ grep -i "MCU type, supported types" os/hal/boards/ -R os/hal/boards/MAPLEMINI_STM32_F103/board.h: * MCU type, supported types are defined in ./os/hal/platforms/hal_lld.h. os/hal/boards/OLIMEX_STM32_103STK/board.h: * MCU type, supported types are defined in ./os/hal/p...
by ceremcem
Mon Aug 24, 2020 8:23 am
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 402

Re: ADC configuration tool

Hi, There is an XML here: \tools\ftl\processors\processors.xml However it only lists MCUs supported by the board files generator. It only lists a few, not useful for the purpose. May I depend on extracting the definitions from os/common/ext/ST/**/*xx.h files? I can parse and extract the definitions...
by ceremcem
Sun Aug 23, 2020 10:14 pm
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 402

Re: ADC configuration tool

Hi Giovanni, I made something that barely states my intention: https://aktos.io/chibi-config/ (source code here ). I need some sort of assistance, if you could. The .c and .h files are actually Ractive templates and I'm basically generating .c and .h files from those templates by user supplied pin c...
by ceremcem
Wed May 13, 2020 12:15 pm
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 402

Re: ADC configuration tool

Very nice to hear that! So this is a real necessity and this approach is accurate. Thanks for the fast response.
by ceremcem
Wed May 13, 2020 11:03 am
Forum: General Support
Topic: ADC configuration tool
Replies: 13
Views: 402

ADC configuration tool

I'm having hard times while finding my way along with the ADC parameters. Being have to remember all the tiny parameters is uncool IMHO. Is there any configuration tool for that purpose? If not, I'm planning to create a Web UI with dropdowns and such, that will generate the desired ADCConversionGrou...
by ceremcem
Tue May 12, 2020 12:05 pm
Forum: Bug Reports
Topic: STM32F0xx/ADC example not compiling Topic is solved
Replies: 1
Views: 314

STM32F0xx/ADC example not compiling Topic is solved

Starting from https://github.com/ChibiOS/ChibiOS/commit/1647491035, testhal/STM32/STM32F0xx/ADC example fails to compile with the following error: Compiler Options arm-none-eabi-gcc -c -mcpu=cortex-m0 -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common...
by ceremcem
Fri Apr 24, 2020 1:04 pm
Forum: STM32 Support
Topic: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved
Replies: 19
Views: 2794

Re: chThdSleepX stucks while debugging on STM32F030x4 Topic is solved

Hi, Careful, GCC version 9-2019-q4 is still affected by the problem. Giovanni Oh, there was an already opened thread for that: http://www.chibios.com/forum/viewtopic.php?t=5449&p=37460 Is this a new bug or those fixes didn't fix the problem correctly? Currently my test application performs the ...

Go to advanced search