Search found 13443 matches

by Giovanni
Fri Apr 16, 2021 5:41 am
Forum: Development and Feedback
Topic: Clang/LLVM
Replies: 26
Views: 6273

Re: Clang/LLVM

Clang should already be supported, I tried it a while ago, did something break in the meanwhile? (I will check) See /os/common/startup/ARMCMx/compilers/LLVM/mk Note that I tried the LLVM-based Hightec compiler, which is proprietary. Results were below GCC, especially for code size, so I have not giv...
by Giovanni
Thu Apr 15, 2021 6:44 pm
Forum: STM32 Support
Topic: Programmatic use of CH_DBG_STATISTICS
Replies: 15
Views: 343

Re: Programmatic use of CH_DBG_STATISTICS

Hi,

You should not change anything in a thread structure, why are you initializing that? it is done already when the thread is created.

Giovanni
by Giovanni
Thu Apr 15, 2021 12:28 pm
Forum: STM32 Support
Topic: Programmatic use of CH_DBG_STATISTICS
Replies: 15
Views: 343

Re: Programmatic use of CH_DBG_STATISTICS

Profiling uses the system tick interrupt to increase a counter in threads, it is only meaningful after a long runtime. It is a legacy mechanism, it could be removed in future versions.

Giovanni
by Giovanni
Thu Apr 15, 2021 9:59 am
Forum: STM32 Support
Topic: Programmatic use of CH_DBG_STATISTICS
Replies: 15
Views: 343

Re: Programmatic use of CH_DBG_STATISTICS

There should not be weird values for "cumulative", that is an uint64_t variable that is only increased until it wraps.

Giovanni
by Giovanni
Thu Apr 15, 2021 5:04 am
Forum: STM32 Support
Topic: Programmatic use of CH_DBG_STATISTICS
Replies: 15
Views: 343

Re: Programmatic use of CH_DBG_STATISTICS

Is it possible that tp->stats.best is equal 0xffffffff in such cases? The "best" field is initialized to 0xffffffff initially so it is a very big number until the 1st measurement is performed. Giovanni Ok so I should check for that before doing the conversion. Yes, the initial values are ...
by Giovanni
Wed Apr 14, 2021 8:01 pm
Forum: STM32 Support
Topic: Programmatic use of CH_DBG_STATISTICS
Replies: 15
Views: 343

Re: Programmatic use of CH_DBG_STATISTICS

Is it possible that tp->stats.best is equal 0xffffffff in such cases? The "best" field is initialized to 0xffffffff initially so it is a very big number until the 1st measurement is performed.

Giovanni
by Giovanni
Wed Apr 14, 2021 7:16 pm
Forum: Development and Feedback
Topic: [NOTES] Multi Core support
Replies: 31
Views: 7892

Re: [NOTES] Multi Core support

Small update. Now the registry is unified in SMP mode, it shows threads from both cores, in decoupled/single mode each instance has its own registry for its own threads. The shell has been updated to show the core where the thread is associated. Other small changes: - Now core_id_t is an "offic...
by Giovanni
Wed Apr 14, 2021 8:49 am
Forum: Small Change Requests
Topic: proposal for stm32l422 support
Replies: 2
Views: 62

Re: proposal for stm32l422 support

Hi,

20.x will not receive enhancements because it is a stable release, bug fixes only, any new addition should be made on trunk.

Giovanni
by Giovanni
Tue Apr 13, 2021 12:36 pm
Forum: Bug Reports
Topic: STM32H7 ADCv4 patches
Replies: 14
Views: 1256

Re: STM32H7 ADCv4 patches

Hi,

Each driver should only touch its own peripheral so setting up PWR MONEN has to be done in mcuconf.h, putting an assertion could be a good idea.

Giovanni
by Giovanni
Mon Apr 12, 2021 6:57 pm
Forum: Bug Reports
Topic: STM32H7 ADCv4 patches
Replies: 14
Views: 1256

Re: STM32H7 ADCv4 patches

The interrupt should come from DMA, is the ADC actually reading samples in memory?

Anyway, please use the support forum for this kind of things, it is not yet a bug report.

Giovanni

Go to advanced search