Search found 10 matches

by Stephane
Fri May 08, 2020 8:07 am
Forum: STM32 Support
Topic: STM32L476 in STOP2 mode
Replies: 10
Views: 766

Re: STM32L476 in STOP2 mode

Don't forget to turn off the debugger hardware: DBGMCU->CR = 0; This is a considerable current draw. Does this also stop the DWT counter? this would disable the RTC unit in the RTOS so no polled delays and no time measurement services. Giovanni I don't think so. I use the RTC (on LSE) to be able re...
by Stephane
Tue Mar 31, 2020 1:33 pm
Forum: STM32 Support
Topic: STM32L476 in STOP2 mode
Replies: 10
Views: 766

Re: STM32L476 in STOP2 mode

Hi, Thank for the ideas, it makes me double check again a lot of thing and i found the problem: After the wake-up, i reconfigured manually all GPIOs, and the problem is that i put: palSetLineMode(LINE_SWDIO, PAL_MODE_ALTERNATE(0)); palSetLineMode(LINE_SWCLK, PAL_MODE_ALTERNATE(0)); instead of palSet...
by Stephane
Mon Mar 30, 2020 1:33 pm
Forum: Bug Reports
Topic: Bit missing for STM32L476 ? Topic is solved
Replies: 5
Views: 1369

Bit missing for STM32L476 ? Topic is solved

Hello, Not sure, but it seems that the LPUART1_CR3, bit UCESM is missing. Perhaps must he be in C:\ChibiStudio\chibios191\os\common\ext\ST\STM32L4xx\stm32l476xx #define USART_CR3_UCESM_Pos (23U) #define USART_CR3_UCESM_Msk (0x1U << USART_CR3_UCESM_Pos) /*!< 0x00800000 */ #define USART_CR3_UCESM USAR...
by Stephane
Mon Mar 30, 2020 1:25 pm
Forum: STM32 Support
Topic: STM32L476 in STOP2 mode
Replies: 10
Views: 766

STM32L476 in STOP2 mode

Hello, I have troubles trying to use the STOP2 sleep mode on a STM32L476. Its on a custom board: i enter manually in sleep mode. (now with a command under the shell) And the wakeup will come from 3 different sources: external button, LPUART activity, or timeout on internal timer. (RTC is on LSE) The...
by Stephane
Tue Nov 05, 2019 9:14 am
Forum: Bug Reports
Topic: RTC on STM373 with Chibios 19.1 Topic is solved
Replies: 5
Views: 578

Re: RTC on STM373 with Chibios 19.1 Topic is solved

Hi,

Checked now: my projects compile fine now.

And small test with one of my prototype: writing/reading the RTC are ok.

Many thanks !!!

Stephane
by Stephane
Mon Nov 04, 2019 11:05 am
Forum: Bug Reports
Topic: RTC on STM373 with Chibios 19.1 Topic is solved
Replies: 5
Views: 578

Re: RTC on STM373 with Chibios 19.1 Topic is solved

Hi, Thanks for the fast answer. It helps: i have a lot less of error messages, but i always obtains these ones: ../../chibios191/os/hal/ports/STM32/LLD/RTCv2/hal_rtc_lld.c:535:2: error: #error "missing required RTC handlers definitions in registry" #error "missing required RTC handler...
by Stephane
Mon Nov 04, 2019 8:45 am
Forum: Bug Reports
Topic: RTC on STM373 with Chibios 19.1 Topic is solved
Replies: 5
Views: 578

RTC on STM373 with Chibios 19.1 Topic is solved

Hello, I'm migrating projects from versions 17.6 and 18.2 to Chibios 19.1. And i'm having some trouble... All projects that use the STM32L496 migrated fine. The ones that uses the STM32F373 with RTC support are complaining about a lot of things about the RTC. These projects uses the internal RTC wit...
by Stephane
Thu Mar 03, 2016 4:29 pm
Forum: STM32 Support
Topic: Change PWM duty cycle
Replies: 3
Views: 1340

Re: Change PWM duty cycle

Hello again,

I have to confess that i found a misplaced pwmStart() on my code...

On my case, with Chibios 3.0.0, the pwmEnableChannel() routine seems to work correctly.

With best regards,

Stéphane
by Stephane
Wed Mar 02, 2016 1:27 pm
Forum: STM32 Support
Topic: Change PWM duty cycle
Replies: 3
Views: 1340

Re: Change PWM duty cycle

Hi,

You are very impressive: very fast answer and correct guess.

(Sorry, i forgotten to specify that i am using a STM32F373)

Thanks a lot for your help !

Stéphane
by Stephane
Wed Mar 02, 2016 11:33 am
Forum: STM32 Support
Topic: Change PWM duty cycle
Replies: 3
Views: 1340

Change PWM duty cycle

Hello, I have a small module that uses two channels on the PWM5. I would like to be able to modify the duty cycle of one of these two channels. My problem is that when i modify the duty cycle of one channel, the second channel is resetted. To modify the duty cycle, i use the function pwmEnableChanne...

Go to advanced search