Search found 382 matches

by faisal
Fri Jun 06, 2025 4:09 pm
Forum: STM32 Support
Topic: STM32F4 + ChibiOS UART Receive Using DMA – Best Practice?
Replies: 3
Views: 15651

Re: STM32F4 + ChibiOS UART Receive Using DMA – Best Practice?

Use cobs encoding for frames. That will allow you to use DMA in receive mode without having to constantly poll/scan the DMA buffer if you have received a frame or not. Set receive DMA length to maximum frame size, and use the character match interrupt set to the 0 byte (COBS framing character) to ...
by faisal
Mon Mar 17, 2025 3:30 pm
Forum: Development and Feedback
Topic: [TALK] Problems with Cortex-M7
Replies: 39
Views: 99611

Re: [TALK] Problems with Cortex-M7

Giovanni wrote:In cache.h you mean?

Giovanni


Sure - or wherever you think is suitable. FYI, updated my post above.
by faisal
Mon Mar 17, 2025 2:48 pm
Forum: Development and Feedback
Topic: [TALK] Problems with Cortex-M7
Replies: 39
Views: 99611

Re: [TALK] Problems with Cortex-M7

How about including something like this in ChibiOS as a helper:


/*
* Macro to declare a cache-aligned buffer
* Parameters:
* T - The data type of the buffer elements
* N - The number of elements in the buffer
* name - The name of the buffer
*/
#define DECL_CACHE_BUFFER(T, N, name ...
by faisal
Mon Mar 17, 2025 1:55 pm
Forum: Bug Reports
Topic: Cache-related problem in some STM32 HAL drivers
Replies: 4
Views: 16834

Re: Cache-related problem in some STM32 HAL drivers

Has this been addressed? If so, in what versions?
by faisal
Mon Mar 17, 2025 12:40 am
Forum: Bug Reports
Topic: STM32 ADCv2 SW triggered start not working
Replies: 3
Views: 19687

Re: STM32 ADCv2 SW triggered start not working

Giovanni wrote:Hi,

Are you sure? the variable "cr2" already contains ADC_CR2_SWSTART, it should work as is.

Giovanni


You're right :) . Sorry for the bother
by faisal
Sat Mar 15, 2025 11:48 pm
Forum: Bug Reports
Topic: STM32 ADCv2 SW triggered start not working
Replies: 3
Views: 19687

STM32 ADCv2 SW triggered start not working

See adc_lld_start_conversion:

/* The start method is different depending if HW or SW triggered, the
start is performed using the method specified in the CR2 configuration.*/
if ((cr2 & ADC_CR2_SWSTART) != 0) {
/* Initializing CR2 while keeping ADC_CR2_SWSTART at zero.*/
adcp->adc->CR2 ...
by faisal
Wed Mar 05, 2025 10:17 pm
Forum: Bug Reports
Topic: STM32F7xx VCO minimum frequency incorrect
Replies: 1
Views: 26850

STM32F7xx VCO minimum frequency incorrect

See the RCC_PLLCFGR section in the TRM (relevant image attached).

https://github.com/ArduPilot/ChibiOS.sv ... 0C4-L170C5

Code: Select all

#define STM32_PLLVCO_MIN        192000000


Should be 100MHz
by faisal
Wed Mar 05, 2025 4:55 am
Forum: Bug Reports
Topic: Simulator rules.mk broken for C++
Replies: 1
Views: 30585

Simulator rules.mk broken for C++

https://github.com/ArduPilot/ChibiOS.sv ... les.mk#L53

Code: Select all

SRC       = $(CSRC)$(CPPSRC)


There should be a space between CSRC and CPPSRC.
by faisal
Tue Jan 02, 2024 11:37 pm
Forum: Development and Feedback
Topic: pthreads linux simulator port
Replies: 4
Views: 27184

Re: pthreads linux simulator port

Added simulator ports and demo for HAL_CAN

From testhal/PTHREAD/CAN/readme.txt


*****************************************************************************
** ChibiOS/RT port for x86 into a Posix process **
*****************************************************************************

** TARGET ...
by faisal
Thu Dec 28, 2023 5:55 pm
Forum: Development and Feedback
Topic: pthreads linux simulator port
Replies: 4
Views: 27184

Re: pthreads linux simulator port

Added simulator ports and demos for GPT and ADC.
m

from testhal/PTHREAD/ADC-GPT/readme.txt:


*****************************************************************************
** ChibiOS/RT port for x86 into a Posix process ...