Search found 105 matches

by enrico.dallavia
Wed Dec 09, 2020 11:15 am
Forum: ChibiOS/HAL
Topic: GPT callback not called if there is no sleep in the main thread
Replies: 2
Views: 3935

Re: GPT callback not called if there is no sleep in the main thread

YES! it works.
I wonder why with the sleep it worked (even if not so accurate)

Thank yoiu very much!!
by enrico.dallavia
Mon Dec 07, 2020 2:02 pm
Forum: ChibiOS/HAL
Topic: GPT callback not called if there is no sleep in the main thread
Replies: 2
Views: 3935

GPT callback not called if there is no sleep in the main thread

Good morning,
I have a problem understanding GPT. I belived that it will use a hardware timer to trigger a function periodically, but it seems to me that, if I don't put a minimum sleep in the code, the callback is never called. I would use the callback to update a timestamp variable. Any clue about ...
by enrico.dallavia
Thu Aug 27, 2020 9:09 am
Forum: STM32 Support
Topic: i2c problem win stm32F412
Replies: 2
Views: 4074

Re: i2c problem win stm32F412

Good morning.
Thank you Giovanni for the useful tips, indeed the problem was the address!
After looking in the primitive STM32/LLD/I2Cv1/hal_i2c_lld.c I found out that the i2c address is composed by shifting left by 1 the original address I gave to the API function.


msg_t i2c_lld_master_transmit ...
by enrico.dallavia
Wed Aug 26, 2020 6:27 pm
Forum: STM32 Support
Topic: i2c problem win stm32F412
Replies: 2
Views: 4074

i2c problem win stm32F412

Hello,
I'm stuck with a problem with i2c, it seems the chibios 20.3.1 is not producing any signal from i2c1 (pin PB7 and PB8). They are configured as: alternate(4), high speed, opendrain.
But every attempt give me -2 as status and i2cGetErrors is 4

static const I2CConfig i2ccfg = {
OPMODE_I2C ...
by enrico.dallavia
Fri Apr 01, 2016 3:03 pm
Forum: STM32 Support
Topic: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK
Replies: 15
Views: 17606

Re: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK

from the datasheet of the discovery:

By default, the STM32F072RBT6 clock source is the High-speed internal (HSI) RC
oscillator


So I'm wondering if other clock source can me used without hardware modification on the board.

Thanks Giovanni for the suggestion I did not think about the pin ...
by enrico.dallavia
Fri Apr 01, 2016 2:34 pm
Forum: STM32 Support
Topic: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK
Replies: 15
Views: 17606

Re: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK

No matter what I'm doing I can't made the discovery board work. It works only with HSI and the macro STM32_HSE_BYPASS is indifferent (with or without the board starts)
If I try to use external oscillator, the system did not start at all :(
by enrico.dallavia
Fri Apr 01, 2016 9:25 am
Forum: STM32 Support
Topic: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK
Replies: 15
Views: 17606

Re: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK

Thanks,
I've just tried with that, but nothing changed

Code: Select all

#if !defined(STM32_HSECLK)
#define STM32_HSECLK                8000000U
#endif

#define STM32_HSE_BYPASS
by enrico.dallavia
Fri Apr 01, 2016 9:17 am
Forum: STM32 Support
Topic: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK
Replies: 15
Views: 17606

Re: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK

I have a problem,
I've tried to setup external oscillator,8MHz, on the discovery board with the following settings:


#define STM32_NO_INIT FALSE
#define STM32_PVD_ENABLE FALSE
#define STM32_PLS STM32_PLS_LEV0
#define STM32_HSI_ENABLED TRUE
#define STM32_HSI14_ENABLED TRUE
#define STM32_HSI48 ...
by enrico.dallavia
Thu Mar 31, 2016 4:33 pm
Forum: STM32 Support
Topic: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK
Replies: 15
Views: 17606

Re: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK

Thanks for the reply.
What I meant is, since I'm used to see the system working by external oscillator, and with the discovery board I did not see this settings (but the board is working, I have it now on my desk) I would like to know how to setup the oscillator and frequency of the processor with ...
by enrico.dallavia
Thu Mar 31, 2016 4:07 pm
Forum: STM32 Support
Topic: STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK
Replies: 15
Views: 17606

STM32_HSE_BYPASS vs STM32_HSE_ENABLED and STM32_HSECLK

Hi,
with the new version of ChibiOS (4.0.4) I found a difference about clock configuration.
In particular I'm thinking about the macro STM32_HSE_BYPASS and the behavior of crystal oscillator and cpu clock speed.
Because in the past, I've usually changed the settings in mcuconf.h, like

#define ...